home *** CD-ROM | disk | FTP | other *** search
/ The Mac 1996 October / The Mac (October 1996).dmg / Web Authoring / HTMLedit173-68k / HTML.edit 1.7.3 (68k) < prev    next >
MacOS Executable  |  1996-01-15  |  1.8 MB  |  [APPL/HTMe]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacOS Executable (executable/macOSExecutable).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert MacOS Executable (executable/macOSExecutable) magic Supported
1% dexvert MacBinary (archive/macBinary) fallback Supported
100% file MacBinary II, bundle, Mon Jan 15 12:12:01 1996, modified Mon Jan 15 12:54:24 1996, creator 'HTMe', type application, 456832 bytes "HTML.edit 1.7.3 (68k)" , at 0x6f900 1437730 bytes resource default (weak)
99% file data default
74% TrID Macintosh Application (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% dearkID deark: macbinary default
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[APPL]
macFileCreator[HTMe]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 15 48 54 4d 4c 2e 65 | 64 69 74 20 31 2e 37 2e |..HTML.e|dit 1.7.|
|00000010| 33 20 28 36 38 6b 29 00 | 00 00 00 00 00 00 00 00 |3 (68k).|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 41 50 50 4c 48 54 4d | 65 20 00 00 00 00 00 00 |.APPLHTM|e ......|
|00000050| 00 00 00 00 06 f8 80 00 | 15 f0 22 ad 20 3b 61 ad |........|..". ;a.|
|00000060| 20 45 50 00 00 00 00 00 | 00 00 00 00 00 00 00 00 | EP.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 b0 02 00 00 |........|........|
|00000080| 00 00 6a 00 53 54 41 4b | ff ff ff ff 00 00 00 00 |..j.STAK|........|
|00000090| 00 00 00 0a 00 06 f8 80 | 00 00 6a 00 00 00 00 00 |........|..j.....|
|000000a0| 00 00 00 00 00 00 00 05 | 00 00 0a 0e 00 00 00 0b |........|........|
|000000b0| 00 00 0b 3e 00 00 17 11 | 00 00 00 00 00 00 00 00 |...>....|........|
|000000c0| 00 00 22 63 00 00 00 00 | 00 05 00 00 10 00 00 00 |.."c....|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 02 20 80 00 01 73 80 00 | 01 73 80 00 01 73 80 00 |. ...s..|.s...s..|
|000000f0| dd 82 1e 7c 00 00 00 00 | 00 cd 01 20 02 23 03 20 |...|....|... .#. |
|00000100| 00 00 00 00 03 00 04 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 0d 75 00 00 0c 65 | 01 56 02 00 00 00 00 00 |...u...e|.V......|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000280| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 80 00 00 00 08 00 00 00 |........|........|
|00000350| 88 00 22 00 88 00 22 00 | 88 88 22 22 88 88 22 22 |.."...".|..""..""|
|00000360| 88 aa 22 aa 88 aa 22 aa | cc aa 33 aa cc aa 33 aa |.."...".|..3...3.|
|00000370| ee aa bb aa ee aa bb aa | ee bb bb ee ee bb bb ee |........|........|
|00000380| ff bb ff ee ff bb ff ee | ff bb ff ff ff bb ff ff |........|........|
|00000390| 80 10 02 20 01 08 40 04 | ff ff ff ff ff ff ff ff |... ..@.|........|
|000003a0| 88 22 88 22 88 22 88 22 | 11 22 44 88 11 22 44 88 |."."."."|."D.."D.|
|000003b0| c4 80 0c 68 43 02 30 26 | b1 30 03 1b d8 c0 0c 8d |...hC.0&|.0......|
|000003c0| aa 00 aa 00 aa 00 aa 00 | 88 22 55 22 88 22 55 22 |........|."U"."U"|
|000003d0| 88 55 22 55 88 55 22 55 | 77 dd 77 dd 77 dd 77 dd |.U"U.U"U|w.w.w.w.|
|000003e0| 80 00 00 00 00 00 00 00 | aa 55 aa 55 aa 55 aa 55 |........|.U.U.U.U|
|000003f0| 03 84 48 30 0c 02 01 01 | 82 44 39 44 82 01 01 01 |..H0....|.D9D....|
|00000400| 88 14 22 41 88 41 22 14 | 80 80 41 3e 08 08 14 e3 |.."A.A".|..A>....|
|00000410| 22 04 8c 74 22 17 98 10 | be 80 88 08 eb 08 88 80 |"..t"...|........|
|00000420| 25 c8 32 89 64 24 4c 92 | a2 9c 41 be 2a c9 14 eb |%.2.d$L.|..A.*...|
|00000430| 40 a0 00 00 04 0a 00 00 | 80 40 20 00 02 04 08 00 |@.......|.@ .....|
|00000440| aa 00 80 00 88 00 80 00 | ff 80 80 80 80 80 80 80 |........|........|
|00000450| 08 1c 22 c1 80 01 02 04 | ff 80 80 80 ff 08 08 08 |..".....|........|
|00000460| f8 74 22 47 8f 17 22 71 | bf 00 bf bf b0 b0 b0 b0 |.t"G.."q|........|
|00000470| ff 7f be 5d a2 41 80 00 | fa f5 fa f5 a0 50 a0 50 |...].A..|.....P.P|
|00000480| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000490| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000600| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000680| 2d 2d 20 48 54 4d 4c 2e | 65 64 69 74 20 76 31 2e |-- HTML.|edit v1.|
|00000690| 37 20 a9 31 39 39 35 20 | 62 79 20 4d 75 72 72 61 |7 .1995 |by Murra|
|000006a0| 79 20 4d 2e 20 41 6c 74 | 68 65 69 6d 2c 20 41 6c |y M. Alt|heim, Al|
|000006b0| 6c 20 52 69 67 68 74 73 | 20 52 65 73 65 72 76 65 |l Rights| Reserve|
|000006c0| 64 2e 0d 0d 6f 6e 20 61 | 70 70 6c 65 45 76 65 6e |d...on a|ppleEven|
|000006d0| 74 0d 73 65 6e 64 20 74 | 68 65 20 70 61 72 61 6d |t.send t|he param|
|000006e0| 73 20 74 6f 20 63 64 20 | 69 64 20 32 38 37 38 0d |s to cd |id 2878.|
|000006f0| 65 6e 64 20 61 70 70 6c | 65 45 76 65 6e 74 0d 0d |end appl|eEvent..|
|00000700| 6f 6e 20 6b 65 79 44 6f | 77 6e 20 6b 0d 67 6c 6f |on keyDo|wn k.glo|
|00000710| 62 61 6c 20 75 6e 64 6f | 6e 65 2c 66 69 6e 64 4d |bal undo|ne,findM|
|00000720| 6f 64 65 0d 69 66 20 66 | 69 6e 64 4d 6f 64 65 20 |ode.if f|indMode |
|00000730| 3d 20 54 52 55 45 20 74 | 68 65 6e 20 73 65 6e 64 |= TRUE t|hen send|
|00000740| 20 22 66 69 6e 64 53 74 | 72 69 6e 67 22 26 26 63 | "findSt|ring"&&c|
|00000750| 68 61 72 54 6f 4e 75 6d | 28 6b 29 20 74 6f 20 62 |harToNum|(k) to b|
|00000760| 67 20 62 74 6e 20 69 64 | 20 31 36 37 0d 65 6c 73 |g btn id| 167.els|
|00000770| 65 0d 70 75 74 20 74 68 | 65 20 73 68 69 66 74 4b |e.put th|e shiftK|
|00000780| 65 79 20 69 73 20 64 6f | 77 6e 20 69 6e 74 6f 20 |ey is do|wn into |
|00000790| 73 68 69 66 74 65 64 0d | 70 75 74 20 63 68 61 72 |shifted.|put char|
|000007a0| 54 6f 4e 75 6d 28 6b 29 | 20 69 6e 74 6f 20 61 73 |ToNum(k)| into as|
|000007b0| 63 69 69 0d 69 66 20 61 | 73 63 69 69 20 b2 20 31 |cii.if a|scii . 1|
|000007c0| 32 20 74 68 65 6e 0d 69 | 66 20 61 73 63 69 69 20 |2 then.i|f ascii |
|000007d0| 3d 20 31 20 74 68 65 6e | 20 67 6f 20 63 64 20 22 |= 1 then| go cd "|
|000007e0| 69 6e 64 65 78 22 0d 65 | 6c 73 65 20 69 66 20 61 |index".e|lse if a|
|000007f0| 73 63 69 69 20 3d 20 34 | 20 74 68 65 6e 20 67 6f |scii = 4| then go|
|00000800| 20 63 64 20 22 70 72 65 | 66 73 22 0d 65 6c 73 65 | cd "pre|fs".else|
|00000810| 20 69 66 20 61 73 63 69 | 69 20 3d 20 35 20 61 6e | if asci|i = 5 an|
|00000820| 64 20 6e 6f 74 20 73 68 | 69 66 74 65 64 20 74 68 |d not sh|ifted th|
|00000830| 65 6e 20 48 54 4d 4c 48 | 65 6c 70 0d 65 6c 73 65 |en HTMLH|elp.else|
|00000840| 20 69 66 20 61 73 63 69 | 69 20 3d 20 31 31 20 6f | if asci|i = 11 o|
|00000850| 72 20 61 73 63 69 69 20 | 3d 20 31 32 20 74 68 65 |r ascii |= 12 the|
|00000860| 6e 0d 67 65 74 20 74 68 | 65 20 73 65 6c 65 63 74 |n.get th|e select|
|00000870| 65 64 43 68 75 6e 6b 0d | 69 66 20 22 63 61 72 64 |edChunk.|if "card|
|00000880| 20 66 69 65 6c 64 22 20 | 69 73 20 69 6e 20 69 74 | field" |is in it|
|00000890| 20 74 68 65 6e 20 70 61 | 67 65 20 66 67 2c 61 73 | then pa|ge fg,as|
|000008a0| 63 69 69 0d 65 6c 73 65 | 20 69 66 20 22 66 69 65 |cii.else| if "fie|
|000008b0| 6c 64 22 20 69 73 20 69 | 6e 20 69 74 20 74 68 65 |ld" is i|n it the|
|000008c0| 6e 20 70 61 67 65 20 62 | 67 2c 61 73 63 69 69 0d |n page b|g,ascii.|
|000008d0| 65 6c 73 65 20 70 61 73 | 73 20 6b 65 79 44 6f 77 |else pas|s keyDow|
|000008e0| 6e 0d 65 6c 73 65 20 70 | 61 73 73 20 6b 65 79 44 |n.else p|ass keyD|
|000008f0| 6f 77 6e 0d 65 6c 73 65 | 20 69 66 20 61 73 63 69 |own.else| if asci|
|00000900| 69 20 3d 20 31 32 37 20 | 74 68 65 6e 20 64 65 6c |i = 127 |then del|
|00000910| 46 77 64 0d 65 6c 73 65 | 0d 70 75 74 20 46 41 4c |Fwd.else|.put FAL|
|00000920| 53 45 20 69 6e 74 6f 20 | 75 6e 64 6f 6e 65 0d 70 |SE into |undone.p|
|00000930| 61 73 73 20 6b 65 79 44 | 6f 77 6e 0d 65 6e 64 20 |ass keyD|own.end |
|00000940| 69 66 0d 65 6e 64 20 69 | 66 0d 65 6e 64 20 6b 65 |if.end i|f.end ke|
|00000950| 79 44 6f 77 6e 0d 0d 6f | 6e 20 63 6f 6d 6d 61 6e |yDown..o|n comman|
|00000960| 64 4b 65 79 44 6f 77 6e | 20 6b 2c 63 6e 74 72 6c |dKeyDown| k,cntrl|
|00000970| 4b 65 79 44 6f 77 6e 0d | 67 6c 6f 62 61 6c 20 68 |KeyDown.|global h|
|00000980| 4e 75 6d 0d 70 75 74 20 | 63 6e 74 72 6c 4b 65 79 |Num.put |cntrlKey|
|00000990| 44 6f 77 6e 20 3d 20 54 | 52 55 45 20 69 6e 74 6f |Down = T|RUE into|
|000009a0| 20 63 6e 74 72 6c 64 0d | 70 75 74 20 74 68 65 20 | cntrld.|put the |
|000009b0| 6f 70 74 69 6f 6e 4b 65 | 79 20 69 73 20 64 6f 77 |optionKe|y is dow|
|000009c0| 6e 20 69 6e 74 6f 20 61 | 6c 74 0d 70 75 74 20 74 |n into a|lt.put t|
|000009d0| 68 65 20 73 68 69 66 74 | 4b 65 79 20 69 73 20 64 |he shift|Key is d|
|000009e0| 6f 77 6e 20 69 6e 74 6f | 20 73 68 69 66 74 65 64 |own into| shifted|
|000009f0| 0d 70 75 74 20 63 68 61 | 72 54 6f 4e 75 6d 28 6b |.put cha|rToNum(k|
|00000a00| 29 20 69 6e 74 6f 20 70 | 0d 49 46 20 70 20 3d 20 |) into p|.IF p = |
|00000a10| 33 30 20 61 6e 64 20 76 | 69 7a 28 22 48 54 4d 4c |30 and v|iz("HTML|
|00000a20| 2e 65 64 69 74 20 48 65 | 6c 70 22 29 20 74 68 65 |.edit He|lp") the|
|00000a30| 6e 20 48 54 4d 4c 48 65 | 6c 70 20 22 62 61 63 6b |n HTMLHe|lp "back|
|00000a40| 22 0d 45 4c 53 45 20 49 | 46 20 70 20 3d 20 33 30 |".ELSE I|F p = 30|
|00000a50| 20 74 68 65 6e 20 67 6f | 20 62 61 63 6b 0d 65 6c | then go| back.el|
|00000a60| 73 65 20 69 66 20 70 20 | 3d 20 33 32 20 74 68 65 |se if p |= 32 the|
|00000a70| 6e 20 48 54 4d 4c 20 22 | 50 6f 73 74 54 61 67 22 |n HTML "|PostTag"|
|00000a80| 2c 22 26 6e 62 73 70 3b | 22 0d 45 4c 53 45 20 69 |,"&nbsp;|".ELSE i|
|00000a90| 66 20 70 20 3d 20 33 39 | 20 74 68 65 6e 20 69 6e |f p = 39| then in|
|00000aa0| 73 65 72 74 51 75 6f 74 | 65 73 0d 45 4c 53 45 20 |sertQuot|es.ELSE |
|00000ab0| 49 46 20 70 20 3d 20 36 | 31 20 74 68 65 6e 20 75 |IF p = 6|1 then u|
|00000ac0| 6e 43 6f 6d 6d 65 6e 74 | 0d 45 4c 53 45 20 69 66 |nComment|.ELSE if|
|00000ad0| 20 70 20 3d 20 39 34 20 | 74 68 65 6e 20 73 68 6f | p = 94 |then sho|
|00000ae0| 77 49 6e 66 6f 0d 45 4c | 53 45 20 49 46 20 6b 20 |wInfo.EL|SE IF k |
|00000af0| 3d 20 22 2f 22 20 6f 72 | 20 6b 20 3d 20 22 3f 22 |= "/" or| k = "?"|
|00000b00| 20 74 68 65 6e 20 48 54 | 4d 4c 48 65 6c 70 0d 45 | then HT|MLHelp.E|
|00000b10| 4c 53 45 20 49 46 20 6b | 20 3d 20 22 30 22 20 74 |LSE IF k| = "0" t|
|00000b20| 68 65 6e 20 73 65 6e 64 | 20 22 73 65 6c 65 63 74 |hen send| "select|
|00000b30| 46 72 6f 6d 49 6e 64 65 | 78 20 33 36 33 33 22 20 |FromInde|x 3633" |
|00000b40| 74 6f 20 74 68 69 73 20 | 63 64 20 2d 2d 20 af 0d |to this |cd -- ..|
|00000b50| 45 4c 53 45 20 49 46 20 | 6b 20 69 73 20 69 6e 20 |ELSE IF |k is in |
|00000b60| 22 31 32 33 34 35 36 22 | 20 74 68 65 6e 0d 70 75 |"123456"| then.pu|
|00000b70| 74 20 6b 20 69 6e 74 6f | 20 68 4e 75 6d 0d 48 54 |t k into| hNum.HT|
|00000b80| 4d 4c 20 48 65 61 64 69 | 6e 67 0d 45 4c 53 45 20 |ML Headi|ng.ELSE |
|00000b90| 69 66 20 61 6c 74 20 61 | 6e 64 20 6b 20 3d 20 22 |if alt a|nd k = "|
|00000ba0| 4c 22 20 74 68 65 6e 20 | 73 68 6f 77 43 6c 69 70 |L" then |showClip|
|00000bb0| 0d 45 4c 53 45 20 69 66 | 20 73 68 69 66 74 65 64 |.ELSE if| shifted|
|00000bc0| 20 74 68 65 6e 0d 69 66 | 20 6b 20 3d 20 22 46 22 | then.if| k = "F"|
|00000bd0| 20 74 68 65 6e 20 73 65 | 6c 65 63 74 46 72 6f 6d | then se|lectFrom|
|00000be0| 49 6e 64 65 78 20 37 34 | 32 37 0d 65 6c 73 65 20 |Index 74|27.else |
|00000bf0| 69 66 20 6b 20 3d 20 22 | 42 22 20 74 68 65 6e 20 |if k = "|B" then |
|00000c00| 48 54 4d 4c 20 22 54 61 | 67 22 2c 22 3c 42 3e 22 |HTML "Ta|g","<B>"|
|00000c10| 2c 22 3c 2f 42 3e 22 2c | 63 6e 74 72 6c 64 0d 65 |,"</B>",|cntrld.e|
|00000c20| 6c 73 65 20 69 66 20 6b | 20 3d 20 22 43 22 20 74 |lse if k| = "C" t|
|00000c30| 68 65 6e 20 48 54 4d 4c | 20 22 54 61 67 22 2c 22 |hen HTML| "Tag","|
|00000c40| 3c 43 49 54 45 3e 22 2c | 22 3c 2f 43 49 54 45 3e |<CITE>",|"</CITE>|
|00000c50| 22 0d 65 6c 73 65 20 69 | 66 20 6b 20 3d 20 22 45 |".else i|f k = "E|
|00000c60| 22 20 74 68 65 6e 20 48 | 54 4d 4c 20 22 54 61 67 |" then H|TML "Tag|
|00000c70| 22 2c 22 3c 45 4d 3e 22 | 2c 22 3c 2f 45 4d 3e 22 |","<EM>"|,"</EM>"|
|00000c80| 0d 65 6c 73 65 20 69 66 | 20 6b 20 3d 20 22 49 22 |.else if| k = "I"|
|00000c90| 20 74 68 65 6e 20 48 54 | 4d 4c 20 22 54 61 67 22 | then HT|ML "Tag"|
|00000ca0| 2c 22 3c 49 3e 22 2c 22 | 3c 2f 49 3e 22 0d 65 6c |,"<I>","|</I>".el|
|00000cb0| 73 65 20 69 66 20 6b 20 | 3d 20 22 50 22 20 6f 72 |se if k |= "P" or|
|00000cc0| 20 6b 20 3d 20 22 b8 22 | 20 74 68 65 6e 0d 69 66 | k = "."| then.if|
|00000cd0| 20 61 6c 74 20 74 68 65 | 6e 20 48 54 4d 4c 20 22 | alt the|n HTML "|
|00000ce0| 54 61 67 22 2c 22 3c 50 | 52 45 20 57 49 44 54 48 |Tag","<P|RE WIDTH|
|00000cf0| 3d 22 26 28 63 64 20 66 | 6c 64 20 69 64 20 32 32 |="&(cd f|ld id 22|
|00000d00| 32 20 6f 66 20 63 64 20 | 69 64 20 39 39 39 33 29 |2 of cd |id 9993)|
|00000d10| 26 22 3e 22 26 72 65 74 | 75 72 6e 2c 22 3c 2f 50 |&">"&ret|urn,"</P|
|00000d20| 52 45 3e 22 0d 65 6c 73 | 65 20 48 54 4d 4c 20 22 |RE>".els|e HTML "|
|00000d30| 54 61 67 22 2c 22 3c 50 | 52 45 3e 22 2c 22 3c 2f |Tag","<P|RE>","</|
|00000d40| 50 52 45 3e 22 0d 65 6c | 73 65 20 69 66 20 6b 20 |PRE>".el|se if k |
|00000d50| 3d 20 22 53 22 20 74 68 | 65 6e 20 48 54 4d 4c 20 |= "S" th|en HTML |
|00000d60| 22 54 61 67 22 2c 22 3c | 53 54 52 4f 4e 47 3e 22 |"Tag","<|STRONG>"|
|00000d70| 2c 22 3c 2f 53 54 52 4f | 4e 47 3e 22 0d 65 6c 73 |,"</STRO|NG>".els|
|00000d80| 65 20 69 66 20 6b 20 3d | 20 22 55 22 20 74 68 65 |e if k =| "U" the|
|00000d90| 6e 20 48 54 4d 4c 20 22 | 54 61 67 22 2c 22 3c 55 |n HTML "|Tag","<U|
|00000da0| 3e 22 2c 22 3c 2f 55 3e | 22 0d 65 6c 73 65 20 69 |>","</U>|".else i|
|00000db0| 66 20 6b 20 3d 20 22 48 | 22 20 74 68 65 6e 20 73 |f k = "H|" then s|
|00000dc0| 65 6c 65 63 74 46 72 6f | 6d 49 6e 64 65 78 20 31 |electFro|mIndex 1|
|00000dd0| 31 37 32 36 0d 65 6c 73 | 65 20 69 66 20 6b 20 3d |1726.els|e if k =|
|00000de0| 20 22 4f 22 20 74 68 65 | 6e 20 62 65 65 70 20 2d | "O" the|n beep -|
|00000df0| 2d 20 6f 75 74 6c 69 6e | 65 0d 65 6c 73 65 20 69 |- outlin|e.else i|
|00000e00| 66 20 6b 20 3d 20 22 54 | 22 20 61 6e 64 20 74 68 |f k = "T|" and th|
|00000e10| 65 72 65 20 69 73 20 61 | 20 63 64 20 69 64 20 37 |ere is a| cd id 7|
|00000e20| 33 35 39 20 74 68 65 6e | 20 67 6f 20 63 64 20 22 |359 then| go cd "|
|00000e30| 54 61 62 6c 65 20 55 74 | 69 6c 69 74 79 22 0d 65 |Table Ut|ility".e|
|00000e40| 6c 73 65 20 70 61 73 73 | 20 63 6f 6d 6d 61 6e 64 |lse pass| command|
|00000e50| 4b 65 79 44 6f 77 6e 0d | 45 4c 53 45 0d 69 66 20 |KeyDown.|ELSE.if |
|00000e60| 6b 20 3d 20 22 72 22 20 | 74 68 65 6e 20 65 78 69 |k = "r" |then exi|
|00000e70| 74 20 63 6f 6d 6d 61 6e | 64 4b 65 79 44 6f 77 6e |t comman|dKeyDown|
|00000e80| 0d 65 6c 73 65 20 69 66 | 20 6b 20 3d 20 22 2d 22 |.else if| k = "-"|
|00000e90| 20 74 68 65 6e 20 48 54 | 4d 4c 20 22 54 61 67 22 | then HT|ML "Tag"|
|00000ea0| 2c 22 3c 21 2d 2d 20 22 | 2c 22 20 2d 2d 3e 22 0d |,"<!-- "|," -->".|
|00000eb0| 65 6c 73 65 20 69 66 20 | 6b 20 3d 20 22 64 22 20 |else if |k = "d" |
|00000ec0| 74 68 65 6e 20 48 54 4d | 4c 20 22 50 6f 73 74 54 |then HTM|L "PostT|
|00000ed0| 61 67 22 2c 22 3c 54 44 | 3e 22 0d 65 6c 73 65 20 |ag","<TD|>".else |
|00000ee0| 69 66 20 6b 20 3d 20 22 | 68 22 20 74 68 65 6e 20 |if k = "|h" then |
|00000ef0| 48 54 4d 4c 20 48 65 61 | 64 69 6e 67 0d 65 6c 73 |HTML Hea|ding.els|
|00000f00| 65 20 69 66 20 6b 20 3d | 20 22 6b 22 20 74 68 65 |e if k =| "k" the|
|00000f10| 6e 20 64 65 48 54 4d 4c | 0d 65 6c 73 65 20 69 66 |n deHTML|.else if|
|00000f20| 20 6b 20 3d 20 22 6c 22 | 20 74 68 65 6e 20 48 54 | k = "l"| then HT|
|00000f30| 4d 4c 20 22 50 6f 73 74 | 54 61 67 22 2c 22 3c 4c |ML "Post|Tag","<L|
|00000f40| 49 3e 22 0d 65 6c 73 65 | 20 69 66 20 6b 20 3d 20 |I>".else| if k = |
|00000f50| 22 61 22 20 61 6e 64 20 | 22 66 69 65 6c 64 22 20 |"a" and |"field" |
|00000f60| 69 73 20 69 6e 20 74 68 | 65 20 73 65 6c 65 63 74 |is in th|e select|
|00000f70| 65 64 43 68 75 6e 6b 20 | 74 68 65 6e 0d 73 65 6c |edChunk |then.sel|
|00000f80| 65 63 74 20 74 65 78 74 | 20 6f 66 20 74 68 65 20 |ect text| of the |
|00000f90| 73 65 6c 65 63 74 65 64 | 46 69 65 6c 64 0d 65 6c |selected|Field.el|
|00000fa0| 73 65 20 69 66 20 6b 20 | 3d 20 22 65 22 20 74 68 |se if k |= "e" th|
|00000fb0| 65 6e 0d 73 65 74 20 74 | 68 65 20 76 69 73 69 62 |en.set t|he visib|
|00000fc0| 6c 65 20 6f 66 20 73 63 | 72 6f 6c 6c 20 77 69 6e |le of sc|roll win|
|00000fd0| 64 6f 77 20 74 6f 20 6e | 6f 74 20 74 68 65 20 76 |dow to n|ot the v|
|00000fe0| 69 73 69 62 6c 65 20 6f | 66 20 73 63 72 6f 6c 6c |isible o|f scroll|
|00000ff0| 20 77 69 6e 64 6f 77 0d | 65 6c 73 65 20 69 66 20 | window.|else if |
|00001000| 6b 20 3d 20 22 6d 22 20 | 74 68 65 6e 0d 73 65 74 |k = "m" |then.set|
|00001010| 20 74 68 65 20 76 69 73 | 69 62 6c 65 20 6f 66 20 | the vis|ible of |
|00001020| 6d 73 67 20 74 6f 20 6e | 6f 74 20 74 68 65 20 76 |msg to n|ot the v|
|00001030| 69 73 69 62 6c 65 20 6f | 66 20 6d 73 67 0d 65 6c |isible o|f msg.el|
|00001040| 73 65 20 69 66 20 6b 20 | 3d 20 22 6e 22 20 74 68 |se if k |= "n" th|
|00001050| 65 6e 20 6e 65 77 44 6f | 63 75 6d 65 6e 74 0d 65 |en newDo|cument.e|
|00001060| 6c 73 65 20 69 66 20 6b | 20 3d 20 22 6f 22 20 74 |lse if k| = "o" t|
|00001070| 68 65 6e 20 73 65 6e 64 | 20 22 69 6d 70 22 20 74 |hen send| "imp" t|
|00001080| 6f 20 74 68 69 73 20 63 | 64 0d 65 6c 73 65 20 69 |o this c|d.else i|
|00001090| 66 20 6b 20 3d 20 22 70 | 22 20 74 68 65 6e 20 70 |f k = "p|" then p|
|000010a0| 72 69 6e 74 54 65 78 74 | 0d 65 6c 73 65 20 69 66 |rintText|.else if|
|000010b0| 20 6b 20 3d 20 22 76 22 | 20 74 68 65 6e 0d 73 65 | k = "v"| then.se|
|000010c0| 74 55 6e 64 6f 20 22 63 | 6c 65 61 72 22 0d 70 61 |tUndo "c|lear".pa|
|000010d0| 73 73 20 63 6f 6d 6d 61 | 6e 64 4b 65 79 44 6f 77 |ss comma|ndKeyDow|
|000010e0| 6e 0d 65 6c 73 65 20 69 | 66 20 6b 20 3d 20 22 78 |n.else i|f k = "x|
|000010f0| 22 20 74 68 65 6e 0d 73 | 65 74 55 6e 64 6f 20 22 |" then.s|etUndo "|
|00001100| 63 6c 65 61 72 22 0d 70 | 61 73 73 20 63 6f 6d 6d |clear".p|ass comm|
|00001110| 61 6e 64 4b 65 79 44 6f | 77 6e 0d 65 6c 73 65 20 |andKeyDo|wn.else |
|00001120| 69 66 20 6b 20 3d 20 22 | 60 22 20 74 68 65 6e 20 |if k = "|`" then |
|00001130| 67 6f 20 62 61 63 6b 0d | 65 6c 73 65 20 70 61 73 |go back.|else pas|
|00001140| 73 20 63 6f 6d 6d 61 6e | 64 4b 65 79 44 6f 77 6e |s comman|dKeyDown|
|00001150| 0d 45 4e 44 20 49 46 0d | 65 6e 64 20 63 6f 6d 6d |.END IF.|end comm|
|00001160| 61 6e 64 4b 65 79 44 6f | 77 6e 0d 0d 6f 6e 20 63 |andKeyDo|wn..on c|
|00001170| 6f 6e 74 72 6f 6c 4b 65 | 79 20 6b 0d 69 66 20 6b |ontrolKe|y k.if k|
|00001180| 20 3d 20 32 20 74 68 65 | 6e 20 48 54 4d 4c 20 22 | = 2 the|n HTML "|
|00001190| 44 65 54 61 67 22 2c 22 | 3c 42 3e 22 2c 22 3c 2f |DeTag","|<B>","</|
|000011a0| 42 3e 22 0d 65 6c 73 65 | 20 69 66 20 6b 20 3d 20 |B>".else| if k = |
|000011b0| 33 20 74 68 65 6e 20 48 | 54 4d 4c 20 22 44 65 54 |3 then H|TML "DeT|
|000011c0| 61 67 22 2c 22 3c 43 49 | 54 45 3e 22 2c 22 3c 2f |ag","<CI|TE>","</|
|000011d0| 43 49 54 45 3e 22 0d 65 | 6c 73 65 20 69 66 20 6b |CITE>".e|lse if k|
|000011e0| 20 3d 20 35 20 74 68 65 | 6e 20 48 54 4d 4c 20 22 | = 5 the|n HTML "|
|000011f0| 44 65 54 61 67 22 2c 22 | 3c 45 4d 3e 22 2c 22 3c |DeTag","|<EM>","<|
|00001200| 2f 45 4d 3e 22 0d 65 6c | 73 65 20 69 66 20 6b 20 |/EM>".el|se if k |
|00001210| 3d 20 38 20 74 68 65 6e | 20 75 6e 48 54 4d 4c 20 |= 8 then| unHTML |
|00001220| 46 41 4c 53 45 0d 65 6c | 73 65 20 69 66 20 6b 20 |FALSE.el|se if k |
|00001230| 3d 20 39 20 74 68 65 6e | 20 48 54 4d 4c 20 22 44 |= 9 then| HTML "D|
|00001240| 65 54 61 67 22 2c 22 3c | 49 3e 22 2c 22 3c 2f 49 |eTag","<|I>","</I|
|00001250| 3e 22 0d 65 6c 73 65 20 | 69 66 20 6b 20 3d 20 31 |>".else |if k = 1|
|00001260| 36 20 74 68 65 6e 0d 69 | 66 20 74 68 65 20 6f 70 |6 then.i|f the op|
|00001270| 74 69 6f 6e 4b 65 79 20 | 69 73 20 64 6f 77 6e 20 |tionKey |is down |
|00001280| 74 68 65 6e 20 48 54 4d | 4c 20 22 44 65 54 61 67 |then HTM|L "DeTag|
|00001290| 22 2c 22 3c 50 52 45 20 | 57 49 44 54 48 3d 22 26 |","<PRE |WIDTH="&|
|000012a0| 28 63 64 20 66 6c 64 20 | 69 64 20 32 32 32 20 6f |(cd fld |id 222 o|
|000012b0| 66 20 63 64 20 69 64 20 | 39 39 39 33 29 26 22 3e |f cd id |9993)&">|
|000012c0| 22 26 72 65 74 75 72 6e | 2c 22 3c 2f 50 52 45 3e |"&return|,"</PRE>|
|000012d0| 22 0d 65 6c 73 65 20 48 | 54 4d 4c 20 22 44 65 54 |".else H|TML "DeT|
|000012e0| 61 67 22 2c 22 3c 50 52 | 45 3e 22 2c 22 3c 2f 50 |ag","<PR|E>","</P|
|000012f0| 52 45 3e 22 0d 65 6c 73 | 65 20 69 66 20 6b 20 3d |RE>".els|e if k =|
|00001300| 20 31 39 20 74 68 65 6e | 20 48 54 4d 4c 20 22 44 | 19 then| HTML "D|
|00001310| 65 54 61 67 22 2c 22 3c | 53 54 52 4f 4e 47 3e 22 |eTag","<|STRONG>"|
|00001320| 2c 22 3c 2f 53 54 52 4f | 4e 47 3e 22 0d 65 6c 73 |,"</STRO|NG>".els|
|00001330| 65 20 69 66 20 6b 20 3d | 20 32 31 20 74 68 65 6e |e if k =| 21 then|
|00001340| 20 48 54 4d 4c 20 22 44 | 65 54 61 67 22 2c 22 3c | HTML "D|eTag","<|
|00001350| 55 3e 22 2c 22 3c 2f 55 | 3e 22 0d 65 6c 73 65 20 |U>","</U|>".else |
|00001360| 69 66 20 6b 20 b3 20 34 | 39 20 61 6e 64 20 6b 20 |if k . 4|9 and k |
|00001370| b2 20 35 34 20 74 68 65 | 6e 20 48 54 4d 4c 20 22 |. 54 the|n HTML "|
|00001380| 44 65 54 61 67 22 2c 22 | 3c 48 22 26 28 6b 2d 34 |DeTag","|<H"&(k-4|
|00001390| 38 29 26 22 3e 22 2c 22 | 3c 2f 48 22 26 28 6b 2d |8)&">","|</H"&(k-|
|000013a0| 34 38 29 26 22 3e 22 0d | 65 6c 73 65 20 62 65 65 |48)&">".|else bee|
|000013b0| 70 20 2d 2d 20 70 61 73 | 73 20 63 6f 6e 74 72 6f |p -- pas|s contro|
|000013c0| 6c 4b 65 79 0d 65 6e 64 | 20 63 6f 6e 74 72 6f 6c |lKey.end| control|
|000013d0| 4b 65 79 0d 0d 6f 6e 20 | 48 54 4d 4c 52 65 74 75 |Key..on |HTMLRetu|
|000013e0| 72 6e 20 63 54 61 67 0d | 73 65 74 55 6e 64 6f 0d |rn cTag.|setUndo.|
|000013f0| 67 65 74 20 74 68 65 20 | 73 65 6c 65 63 74 65 64 |get the |selected|
|00001400| 43 68 75 6e 6b 0d 70 75 | 74 20 77 6f 72 64 20 34 |Chunk.pu|t word 4|
|00001410| 20 6f 66 20 69 74 20 69 | 6e 74 6f 20 45 0d 70 75 | of it i|nto E.pu|
|00001420| 74 20 77 6f 72 64 20 36 | 20 74 6f 20 38 20 6f 66 |t word 6| to 8 of|
|00001430| 20 69 74 20 69 6e 74 6f | 20 73 46 6c 64 0d 64 6f | it into| sFld.do|
|00001440| 20 22 70 75 74 20 63 68 | 61 72 20 22 26 28 45 2b | "put ch|ar "&(E+|
|00001450| 31 29 26 22 20 74 6f 20 | 22 26 28 45 2b 34 29 26 |1)&" to |"&(E+4)&|
|00001460| 22 20 6f 66 20 22 26 73 | 46 6c 64 26 22 20 69 6e |" of "&s|Fld&" in|
|00001470| 74 6f 20 6e 65 78 74 54 | 61 67 22 0d 69 66 20 63 |to nextT|ag".if c|
|00001480| 54 61 67 20 3d 20 22 3c | 42 52 3e 22 20 74 68 65 |Tag = "<|BR>" the|
|00001490| 6e 0d 69 66 20 6c 65 6e | 67 74 68 28 73 65 6c 65 |n.if len|gth(sele|
|000014a0| 63 74 65 64 54 65 78 74 | 29 20 3e 20 30 20 74 68 |ctedText|) > 0 th|
|000014b0| 65 6e 20 70 75 74 20 22 | 3c 42 52 3e 22 26 72 65 |en put "|<BR>"&re|
|000014c0| 74 75 72 6e 20 61 66 74 | 65 72 20 74 68 65 20 73 |turn aft|er the s|
|000014d0| 65 6c 65 63 74 69 6f 6e | 0d 65 6c 73 65 20 74 79 |election|.else ty|
|000014e0| 70 65 20 22 3c 42 52 3e | 22 26 72 65 74 75 72 6e |pe "<BR>|"&return|
|000014f0| 0d 65 6c 73 65 0d 69 66 | 20 6e 65 78 74 54 61 67 |.else.if| nextTag|
|00001500| 20 3d 20 22 3c 2f 50 3e | 22 20 74 68 65 6e 0d 64 | = "</P>|" then.d|
|00001510| 6f 20 22 70 75 74 20 72 | 65 74 75 72 6e 26 22 26 |o "put r|eturn&"&|
|00001520| 71 75 6f 74 65 26 22 3c | 50 3e 22 26 63 54 61 67 |quote&"<|P>"&cTag|
|00001530| 26 71 75 6f 74 65 26 22 | 20 61 66 74 65 72 20 63 |&quote&"| after c|
|00001540| 68 61 72 20 22 26 28 45 | 2b 34 29 26 22 20 6f 66 |har "&(E|+4)&" of|
|00001550| 20 22 26 73 46 6c 64 0d | 64 6f 20 22 73 65 6c 65 | "&sFld.|do "sele|
|00001560| 63 74 20 63 68 61 72 20 | 22 26 28 45 2b 39 29 26 |ct char |"&(E+9)&|
|00001570| 22 20 74 6f 20 22 26 28 | 45 2b 38 29 26 22 20 6f |" to "&(|E+8)&" o|
|00001580| 66 20 22 26 73 46 6c 64 | 0d 65 6c 73 65 0d 69 66 |f "&sFld|.else.if|
|00001590| 20 28 45 2d 28 77 6f 72 | 64 20 32 20 6f 66 20 69 | (E-(wor|d 2 of i|
|000015a0| 74 29 2b 31 29 20 3d 20 | 30 20 74 68 65 6e 20 2d |t)+1) = |0 then -|
|000015b0| 2d 20 65 6d 70 74 79 20 | 73 65 6c 65 63 74 69 6f |- empty |selectio|
|000015c0| 6e 0d 70 75 74 20 72 65 | 74 75 72 6e 26 22 3c 50 |n.put re|turn&"<P|
|000015d0| 3e 22 26 63 54 61 67 20 | 61 66 74 65 72 20 74 68 |>"&cTag |after th|
|000015e0| 65 20 73 65 6c 65 63 74 | 69 6f 6e 0d 64 6f 20 22 |e select|ion.do "|
|000015f0| 73 65 6c 65 63 74 20 63 | 68 61 72 20 22 26 28 45 |select c|har "&(E|
|00001600| 2b 35 29 26 22 20 74 6f | 20 22 26 28 45 2b 34 29 |+5)&" to| "&(E+4)|
|00001610| 26 22 20 6f 66 20 22 26 | 73 46 6c 64 0d 65 6c 73 |&" of "&|sFld.els|
|00001620| 65 20 69 66 20 63 54 61 | 67 20 3d 20 22 3c 2f 50 |e if cTa|g = "</P|
|00001630| 3e 22 20 74 68 65 6e 20 | 48 54 4d 4c 20 22 50 61 |>" then |HTML "Pa|
|00001640| 72 61 67 72 61 70 68 32 | 2e 30 22 0d 65 6c 73 65 |ragraph2|.0".else|
|00001650| 20 48 54 4d 4c 20 22 50 | 61 72 61 67 72 61 70 68 | HTML "P|aragraph|
|00001660| 31 2e 30 22 0d 65 6e 64 | 20 69 66 0d 65 6e 64 20 |1.0".end| if.end |
|00001670| 69 66 0d 65 6e 64 20 48 | 54 4d 4c 52 65 74 75 72 |if.end H|TMLRetur|
|00001680| 6e 0d 0d 6f 6e 20 72 65 | 74 75 72 6e 49 6e 46 69 |n..on re|turnInFi|
|00001690| 65 6c 64 0d 67 6c 6f 62 | 61 6c 20 75 73 65 48 54 |eld.glob|al useHT|
|000016a0| 4d 4c 52 65 74 75 72 6e | 0d 69 66 20 75 73 65 48 |MLReturn|.if useH|
|000016b0| 54 4d 4c 52 65 74 75 72 | 6e 20 ad 20 54 52 55 45 |TMLRetur|n . TRUE|
|000016c0| 20 74 68 65 6e 20 70 61 | 73 73 20 72 65 74 75 72 | then pa|ss retur|
|000016d0| 6e 49 6e 46 69 65 6c 64 | 0d 70 75 74 20 74 68 65 |nInField|.put the|
|000016e0| 20 6f 70 74 69 6f 6e 4b | 65 79 20 69 73 20 64 6f | optionK|ey is do|
|000016f0| 77 6e 20 69 6e 74 6f 20 | 6f 70 6b 65 79 0d 70 75 |wn into |opkey.pu|
|00001700| 74 20 74 68 65 20 73 68 | 69 66 74 4b 65 79 20 69 |t the sh|iftKey i|
|00001710| 73 20 64 6f 77 6e 20 69 | 6e 74 6f 20 73 6b 65 79 |s down i|nto skey|
|00001720| 0d 67 65 74 20 74 68 65 | 20 68 69 6c 69 74 65 20 |.get the| hilite |
|00001730| 6f 66 20 63 64 20 62 74 | 6e 20 69 64 20 38 30 20 |of cd bt|n id 80 |
|00001740| 6f 66 20 63 64 20 22 70 | 72 65 66 73 22 0d 69 66 |of cd "p|refs".if|
|00001750| 20 6f 70 6b 65 79 20 61 | 6e 64 20 73 6b 65 79 20 | opkey a|nd skey |
|00001760| 74 68 65 6e 0d 69 66 20 | 69 74 20 74 68 65 6e 20 |then.if |it then |
|00001770| 48 54 4d 4c 52 65 74 75 | 72 6e 20 65 6c 73 65 20 |HTMLRetu|rn else |
|00001780| 48 54 4d 4c 52 65 74 75 | 72 6e 20 22 3c 2f 50 3e |HTMLRetu|rn "</P>|
|00001790| 22 0d 65 6c 73 65 20 69 | 66 20 6f 70 6b 65 79 20 |".else i|f opkey |
|000017a0| 74 68 65 6e 0d 69 66 20 | 69 74 20 74 68 65 6e 20 |then.if |it then |
|000017b0| 48 54 4d 4c 52 65 74 75 | 72 6e 20 22 3c 2f 50 3e |HTMLRetu|rn "</P>|
|000017c0| 22 20 65 6c 73 65 20 48 | 54 4d 4c 52 65 74 75 72 |" else H|TMLRetur|
|000017d0| 6e 0d 65 6c 73 65 20 69 | 66 20 73 6b 65 79 20 74 |n.else i|f skey t|
|000017e0| 68 65 6e 20 48 54 4d 4c | 52 65 74 75 72 6e 20 22 |hen HTML|Return "|
|000017f0| 3c 42 52 3e 22 0d 65 6c | 73 65 20 70 61 73 73 20 |<BR>".el|se pass |
|00001800| 72 65 74 75 72 6e 49 6e | 46 69 65 6c 64 0d 65 6e |returnIn|Field.en|
|00001810| 64 20 72 65 74 75 72 6e | 49 6e 46 69 65 6c 64 0d |d return|InField.|
|00001820| 0d 6f 6e 20 73 65 74 55 | 6e 64 6f 20 6d 6f 64 65 |.on setU|ndo mode|
|00001830| 0d 67 6c 6f 62 61 6c 20 | 6c 61 73 74 53 65 6c 65 |.global |lastSele|
|00001840| 63 74 2c 68 65 61 64 65 | 72 2c 62 6f 64 79 2c 66 |ct,heade|r,body,f|
|00001850| 6f 6f 74 65 72 2c 75 6e | 64 6f 6e 65 0d 69 66 20 |ooter,un|done.if |
|00001860| 6d 6f 64 65 20 3d 20 22 | 72 65 73 74 6f 72 65 22 |mode = "|restore"|
|00001870| 20 74 68 65 6e 0d 69 66 | 20 6e 6f 74 20 75 6e 64 | then.if| not und|
|00001880| 6f 6e 65 20 74 68 65 6e | 20 65 78 69 74 20 73 65 |one then| exit se|
|00001890| 74 55 6e 64 6f 0d 70 75 | 74 20 74 68 65 20 73 65 |tUndo.pu|t the se|
|000018a0| 6c 65 63 74 65 64 43 68 | 75 6e 6b 20 69 6e 74 6f |lectedCh|unk into|
|000018b0| 20 6e 65 77 53 65 6c 65 | 63 74 0d 67 65 74 20 66 | newSele|ct.get f|
|000018c0| 6c 64 20 22 48 65 61 64 | 65 72 22 0d 70 75 74 20 |ld "Head|er".put |
|000018d0| 68 65 61 64 65 72 20 69 | 6e 74 6f 20 66 6c 64 20 |header i|nto fld |
|000018e0| 22 48 65 61 64 65 72 22 | 0d 70 75 74 20 69 74 20 |"Header"|.put it |
|000018f0| 69 6e 74 6f 20 68 65 61 | 64 65 72 0d 67 65 74 20 |into hea|der.get |
|00001900| 66 6c 64 20 22 42 6f 64 | 79 22 0d 70 75 74 20 62 |fld "Bod|y".put b|
|00001910| 6f 64 79 20 69 6e 74 6f | 20 66 6c 64 20 22 42 6f |ody into| fld "Bo|
|00001920| 64 79 22 0d 70 75 74 20 | 69 74 20 69 6e 74 6f 20 |dy".put |it into |
|00001930| 62 6f 64 79 0d 67 65 74 | 20 66 6c 64 20 22 46 6f |body.get| fld "Fo|
|00001940| 6f 74 65 72 22 0d 70 75 | 74 20 66 6f 6f 74 65 72 |oter".pu|t footer|
|00001950| 20 69 6e 74 6f 20 66 6c | 64 20 22 46 6f 6f 74 65 | into fl|d "Foote|
|00001960| 72 22 0d 70 75 74 20 69 | 74 20 69 6e 74 6f 20 66 |r".put i|t into f|
|00001970| 6f 6f 74 65 72 0d 73 65 | 74 49 6e 66 6f 54 65 78 |ooter.se|tInfoTex|
|00001980| 74 0d 69 66 20 6c 61 73 | 74 53 65 6c 65 63 74 20 |t.if las|tSelect |
|00001990| ad 20 22 22 20 74 68 65 | 6e 0d 73 65 6c 65 63 74 |. "" the|n.select|
|000019a0| 20 6c 61 73 74 53 65 6c | 65 63 74 0d 65 6e 64 20 | lastSel|ect.end |
|000019b0| 69 66 0d 70 75 74 20 6e | 65 77 53 65 6c 65 63 74 |if.put n|ewSelect|
|000019c0| 20 69 6e 74 6f 20 6c 61 | 73 74 53 65 6c 65 63 74 | into la|stSelect|
|000019d0| 0d 65 6c 73 65 20 69 66 | 20 6d 6f 64 65 20 3d 20 |.else if| mode = |
|000019e0| 22 63 6c 65 61 72 22 20 | 74 68 65 6e 0d 70 75 74 |"clear" |then.put|
|000019f0| 20 22 22 20 69 6e 74 6f | 20 6c 61 73 74 53 65 6c | "" into| lastSel|
|00001a00| 65 63 74 0d 70 75 74 20 | 22 22 20 69 6e 74 6f 20 |ect.put |"" into |
|00001a10| 68 65 61 64 65 72 0d 70 | 75 74 20 22 22 20 69 6e |header.p|ut "" in|
|00001a20| 74 6f 20 62 6f 64 79 0d | 70 75 74 20 22 22 20 69 |to body.|put "" i|
|00001a30| 6e 74 6f 20 66 6f 6f 74 | 65 72 0d 65 6c 73 65 20 |nto foot|er.else |
|00001a40| 2d 2d 20 73 74 6f 72 65 | 20 63 6f 6e 74 65 6e 74 |-- store| content|
|00001a50| 73 0d 70 75 74 20 74 68 | 65 20 73 65 6c 65 63 74 |s.put th|e select|
|00001a60| 65 64 43 68 75 6e 6b 20 | 69 6e 74 6f 20 6c 61 73 |edChunk |into las|
|00001a70| 74 53 65 6c 65 63 74 0d | 70 75 74 20 66 6c 64 20 |tSelect.|put fld |
|00001a80| 22 48 65 61 64 65 72 22 | 20 69 6e 74 6f 20 68 65 |"Header"| into he|
|00001a90| 61 64 65 72 0d 70 75 74 | 20 66 6c 64 20 22 42 6f |ader.put| fld "Bo|
|00001aa0| 64 79 22 20 69 6e 74 6f | 20 62 6f 64 79 0d 70 75 |dy" into| body.pu|
|00001ab0| 74 20 66 6c 64 20 22 46 | 6f 6f 74 65 72 22 20 69 |t fld "F|ooter" i|
|00001ac0| 6e 74 6f 20 66 6f 6f 74 | 65 72 0d 65 6e 64 20 69 |nto foot|er.end i|
|00001ad0| 66 0d 70 75 74 20 28 6d | 6f 64 65 20 ad 20 22 63 |f.put (m|ode . "c|
|00001ae0| 6c 65 61 72 22 29 20 69 | 6e 74 6f 20 75 6e 64 6f |lear") i|nto undo|
|00001af0| 6e 65 0d 65 6e 64 20 73 | 65 74 55 6e 64 6f 0d 0d |ne.end s|etUndo..|
|00001b00| 6f 6e 20 73 68 6f 77 45 | 6e 74 69 74 69 65 73 0d |on showE|ntities.|
|00001b10| 69 66 20 74 68 65 72 65 | 20 69 73 20 61 20 77 69 |if there| is a wi|
|00001b20| 6e 64 6f 77 20 22 45 6e | 74 69 74 69 65 73 22 20 |ndow "En|tities" |
|00001b30| 74 68 65 6e 20 73 68 6f | 77 20 77 69 6e 64 6f 77 |then sho|w window|
|00001b40| 20 22 45 6e 74 69 74 69 | 65 73 22 0d 65 6c 73 65 | "Entiti|es".else|
|00001b50| 20 70 69 63 74 75 72 65 | 20 22 45 6e 74 69 74 69 | picture| "Entiti|
|00001b60| 65 73 22 2c 72 65 73 6f | 75 72 63 65 2c 70 6c 61 |es",reso|urce,pla|
|00001b70| 69 6e 2c 74 72 75 65 2c | 2c 74 72 75 65 0d 65 6e |in,true,|,true.en|
|00001b80| 64 20 73 68 6f 77 45 6e | 74 69 74 69 65 73 0d 0d |d showEn|tities..|
|00001b90| 6f 6e 20 73 65 6c 65 63 | 74 45 6e 74 69 74 79 0d |on selec|tEntity.|
|00001ba0| 69 66 20 74 68 65 72 65 | 20 69 73 20 61 20 77 69 |if there| is a wi|
|00001bb0| 6e 64 6f 77 20 22 45 6e | 74 69 74 69 65 73 22 20 |ndow "En|tities" |
|00001bc0| 74 68 65 6e 0d 70 75 74 | 20 72 6f 75 6e 64 28 28 |then.put| round((|
|00001bd0| 69 74 65 6d 20 31 20 6f | 66 20 74 68 65 20 63 6c |item 1 o|f the cl|
|00001be0| 69 63 6b 4c 6f 63 2d 69 | 74 65 6d 20 31 20 6f 66 |ickLoc-i|tem 1 of|
|00001bf0| 20 74 68 65 20 6c 6f 63 | 20 6f 66 20 77 69 6e 64 | the loc| of wind|
|00001c00| 6f 77 20 22 45 6e 74 69 | 74 69 65 73 22 29 20 64 |ow "Enti|ties") d|
|00001c10| 69 76 20 31 38 29 2b 31 | 20 69 6e 74 6f 20 63 6f |iv 18)+1| into co|
|00001c20| 6c 0d 70 75 74 20 72 6f | 75 6e 64 28 28 28 28 69 |l.put ro|und((((i|
|00001c30| 74 65 6d 20 32 20 6f 66 | 20 74 68 65 20 63 6c 69 |tem 2 of| the cli|
|00001c40| 63 6b 4c 6f 63 29 20 2d | 20 31 36 29 2d 69 74 65 |ckLoc) -| 16)-ite|
|00001c50| 6d 20 32 20 6f 66 20 74 | 68 65 20 6c 6f 63 20 6f |m 2 of t|he loc o|
|00001c60| 66 20 77 69 6e 64 6f 77 | 20 22 45 6e 74 69 74 69 |f window| "Entiti|
|00001c70| 65 73 22 29 20 64 69 76 | 20 31 38 29 2b 31 20 69 |es") div| 18)+1 i|
|00001c80| 6e 74 6f 20 72 6f 77 0d | 69 66 20 72 6f 77 20 3d |nto row.|if row =|
|00001c90| 20 37 20 61 6e 64 20 63 | 6f 6c 20 3e 20 34 20 74 | 7 and c|ol > 4 t|
|00001ca0| 68 65 6e 20 67 65 74 20 | 69 74 65 6d 20 28 63 6f |hen get |item (co|
|00001cb0| 6c 2d 34 29 20 6f 66 20 | 22 26 6c 74 3b 2c 26 67 |l-4) of |"&lt;,&g|
|00001cc0| 74 3b 2c 26 61 6d 70 3b | 2c 26 71 75 6f 74 3b 2c |t;,&amp;|,&quot;,|
|00001cd0| 26 63 6f 70 79 3b 2c 26 | 72 65 67 3b 2c 26 6e 62 |&copy;,&|reg;,&nb|
|00001ce0| 73 70 3b 2c 26 23 31 33 | 39 3b 22 0d 65 6c 73 65 |sp;,&#13|9;".else|
|00001cf0| 20 67 65 74 20 65 6e 74 | 32 48 54 4d 4c 28 69 74 | get ent|2HTML(it|
|00001d00| 65 6d 20 63 6f 6c 20 6f | 66 20 6c 69 6e 65 20 72 |em col o|f line r|
|00001d10| 6f 77 20 6f 66 20 63 68 | 61 72 45 6e 74 69 74 79 |ow of ch|arEntity|
|00001d20| 4d 61 70 28 29 29 0d 69 | 66 20 22 66 69 65 6c 64 |Map()).i|f "field|
|00001d30| 22 20 69 73 20 6e 6f 74 | 20 69 6e 20 74 68 65 20 |" is not| in the |
|00001d40| 73 65 6c 65 63 74 65 64 | 43 68 75 6e 6b 20 74 68 |selected|Chunk th|
|00001d50| 65 6e 20 70 75 74 20 69 | 74 20 69 6e 74 6f 20 6d |en put i|t into m|
|00001d60| 73 67 0d 65 6c 73 65 20 | 48 54 4d 4c 20 22 50 6f |sg.else |HTML "Po|
|00001d70| 73 74 54 61 67 22 2c 69 | 74 0d 65 6e 64 20 69 66 |stTag",i|t.end if|
|00001d80| 0d 65 6e 64 20 73 65 6c | 65 63 74 45 6e 74 69 74 |.end sel|ectEntit|
|00001d90| 79 0d 0d 66 75 6e 63 74 | 69 6f 6e 20 65 6e 74 32 |y..funct|ion ent2|
|00001da0| 48 54 4d 4c 20 65 20 2d | 2d 20 72 65 74 75 72 6e |HTML e -|- return|
|00001db0| 20 48 54 4d 4c 20 69 66 | 20 65 6e 74 69 74 79 20 | HTML if| entity |
|00001dc0| 3e 20 31 32 37 0d 67 65 | 74 20 63 68 61 72 54 6f |> 127.ge|t charTo|
|00001dd0| 4e 75 6d 28 65 29 0d 69 | 66 20 69 74 20 b3 20 31 |Num(e).i|f it . 1|
|00001de0| 32 38 20 61 6e 64 20 69 | 74 20 b2 20 32 34 34 20 |28 and i|t . 244 |
|00001df0| 74 68 65 6e 0d 67 65 74 | 20 48 54 4d 4c 45 6e 74 |then.get| HTMLEnt|
|00001e00| 69 74 79 4d 61 70 28 69 | 74 20 2d 20 31 32 37 29 |ityMap(i|t - 127)|
|00001e10| 0d 69 66 20 69 74 20 3d | 20 22 22 20 74 68 65 6e |.if it =| "" then|
|00001e20| 20 72 65 74 75 72 6e 20 | 65 0d 65 6c 73 65 20 72 | return |e.else r|
|00001e30| 65 74 75 72 6e 20 69 74 | 0d 65 6c 73 65 20 72 65 |eturn it|.else re|
|00001e40| 74 75 72 6e 20 65 0d 65 | 6e 64 20 65 6e 74 32 48 |turn e.e|nd ent2H|
|00001e50| 54 4d 4c 0d 0d 66 75 6e | 63 74 69 6f 6e 20 69 74 |TML..fun|ction it|
|00001e60| 65 6d 45 78 69 73 74 73 | 20 69 74 65 6d 4c 69 73 |emExists| itemLis|
|00001e70| 74 20 2d 2d 20 66 69 72 | 73 74 20 6c 69 6e 65 20 |t -- fir|st line |
|00001e80| 69 73 20 74 68 65 49 74 | 65 6d 0d 67 65 74 20 6c |is theIt|em.get l|
|00001e90| 69 6e 65 20 31 20 6f 66 | 20 69 74 65 6d 4c 69 73 |ine 1 of| itemLis|
|00001ea0| 74 0d 64 65 6c 65 74 65 | 20 6c 69 6e 65 20 31 20 |t.delete| line 1 |
|00001eb0| 6f 66 20 69 74 65 6d 4c | 69 73 74 0d 72 65 70 65 |of itemL|ist.repe|
|00001ec0| 61 74 20 77 69 74 68 20 | 69 20 3d 20 31 20 74 6f |at with |i = 1 to|
|00001ed0| 20 6e 75 6d 62 65 72 28 | 6c 69 6e 65 73 20 69 6e | number(|lines in|
|00001ee0| 20 69 74 65 6d 4c 69 73 | 74 29 0d 69 66 20 6c 69 | itemLis|t).if li|
|00001ef0| 6e 65 20 69 20 6f 66 20 | 69 74 65 6d 4c 69 73 74 |ne i of |itemList|
|00001f00| 20 69 73 20 69 74 20 74 | 68 65 6e 20 72 65 74 75 | is it t|hen retu|
|00001f10| 72 6e 20 54 52 55 45 0d | 65 6e 64 20 72 65 70 65 |rn TRUE.|end repe|
|00001f20| 61 74 0d 72 65 74 75 72 | 6e 20 46 41 4c 53 45 0d |at.retur|n FALSE.|
|00001f30| 65 6e 64 20 69 74 65 6d | 45 78 69 73 74 73 0d 0d |end item|Exists..|
|00001f40| 66 75 6e 63 74 69 6f 6e | 20 67 65 74 41 74 74 72 |function| getAttr|
|00001f50| 4c 69 73 74 20 74 61 67 | 2c 61 74 74 72 0d 2d 2d |List tag|,attr.--|
|00001f60| 20 72 65 74 75 72 6e 20 | 61 74 74 72 20 28 6e 61 | return |attr (na|
|00001f70| 6d 65 2c 76 61 6c 75 65 | 29 20 6f 66 20 74 61 67 |me,value|) of tag|
|00001f80| 2c 20 6f 72 20 61 6c 6c | 20 69 66 20 61 74 74 72 |, or all| if attr|
|00001f90| 20 3d 20 22 22 0d 2d 2d | 20 69 66 20 6e 6f 20 74 | = "".--| if no t|
|00001fa0| 61 67 20 66 6f 75 6e 64 | 20 6f 72 20 6e 6f 74 20 |ag found| or not |
|00001fb0| 69 6e 20 55 52 4c 20 66 | 6f 72 6d 61 74 2c 20 72 |in URL f|ormat, r|
|00001fc0| 65 74 75 72 6e 20 22 22 | 0d 70 75 74 20 31 20 69 |eturn ""|.put 1 i|
|00001fd0| 6e 74 6f 20 4c 0d 70 75 | 74 20 74 61 67 20 69 6e |nto L.pu|t tag in|
|00001fe0| 74 6f 20 74 68 65 54 61 | 67 0d 70 75 74 20 22 22 |to theTa|g.put ""|
|00001ff0| 20 69 6e 74 6f 20 61 74 | 74 72 4c 69 73 74 0d 67 | into at|trList.g|
|00002000| 65 74 20 6f 66 66 73 65 | 74 28 22 20 22 2c 74 61 |et offse|t(" ",ta|
|00002010| 67 29 0d 64 65 6c 65 74 | 65 20 63 68 61 72 20 31 |g).delet|e char 1|
|00002020| 20 74 6f 20 69 74 20 6f | 66 20 74 61 67 0d 72 65 | to it o|f tag.re|
|00002030| 70 65 61 74 0d 72 65 70 | 65 61 74 20 77 68 69 6c |peat.rep|eat whil|
|00002040| 65 20 63 68 61 72 20 31 | 20 6f 66 20 74 61 67 20 |e char 1| of tag |
|00002050| 3d 20 22 20 22 0d 64 65 | 6c 65 74 65 20 63 68 61 |= " ".de|lete cha|
|00002060| 72 20 31 20 6f 66 20 74 | 61 67 0d 65 6e 64 20 72 |r 1 of t|ag.end r|
|00002070| 65 70 65 61 74 0d 70 75 | 74 20 6f 66 66 73 65 74 |epeat.pu|t offset|
|00002080| 28 22 3d 22 2c 74 61 67 | 29 20 69 6e 74 6f 20 65 |("=",tag|) into e|
|00002090| 71 0d 69 66 20 65 71 20 | 3d 20 30 20 74 68 65 6e |q.if eq |= 0 then|
|000020a0| 20 65 78 69 74 20 72 65 | 70 65 61 74 0d 70 75 74 | exit re|peat.put|
|000020b0| 20 74 72 69 6d 28 63 68 | 61 72 20 31 20 74 6f 20 | trim(ch|ar 1 to |
|000020c0| 28 65 71 2d 31 29 20 6f | 66 20 74 61 67 29 20 69 |(eq-1) o|f tag) i|
|000020d0| 6e 74 6f 20 69 74 65 6d | 20 31 20 6f 66 20 6c 69 |nto item| 1 of li|
|000020e0| 6e 65 20 4c 20 6f 66 20 | 61 74 74 72 4c 69 73 74 |ne L of |attrList|
|000020f0| 0d 64 65 6c 65 74 65 20 | 63 68 61 72 20 31 20 74 |.delete |char 1 t|
|00002100| 6f 20 65 71 20 6f 66 20 | 74 61 67 0d 72 65 70 65 |o eq of |tag.repe|
|00002110| 61 74 20 77 68 69 6c 65 | 20 63 68 61 72 20 31 20 |at while| char 1 |
|00002120| 6f 66 20 74 61 67 20 3d | 20 22 20 22 0d 64 65 6c |of tag =| " ".del|
|00002130| 65 74 65 20 63 68 61 72 | 20 31 20 6f 66 20 74 61 |ete char| 1 of ta|
|00002140| 67 0d 65 6e 64 20 72 65 | 70 65 61 74 0d 69 66 20 |g.end re|peat.if |
|00002150| 63 68 61 72 20 31 20 6f | 66 20 74 61 67 20 3d 20 |char 1 o|f tag = |
|00002160| 71 75 6f 74 65 20 6f 72 | 20 63 68 61 72 20 31 20 |quote or| char 1 |
|00002170| 6f 66 20 74 61 67 20 3d | 20 22 d4 22 20 74 68 65 |of tag =| "." the|
|00002180| 6e 0d 64 65 6c 65 74 65 | 20 63 68 61 72 20 31 20 |n.delete| char 1 |
|00002190| 6f 66 20 74 61 67 0d 70 | 75 74 20 6f 66 66 73 65 |of tag.p|ut offse|
|000021a0| 74 28 22 3d 22 2c 74 61 | 67 29 20 69 6e 74 6f 20 |t("=",ta|g) into |
|000021b0| 6e 65 78 74 45 51 0d 67 | 65 74 20 6f 66 66 73 65 |nextEQ.g|et offse|
|000021c0| 74 28 71 75 6f 74 65 2c | 74 61 67 29 0d 69 66 20 |t(quote,|tag).if |
|000021d0| 69 74 20 3d 20 30 20 6f | 72 20 28 69 74 20 3e 20 |it = 0 o|r (it > |
|000021e0| 6e 65 78 74 45 51 20 61 | 6e 64 20 6e 65 78 74 45 |nextEQ a|nd nextE|
|000021f0| 51 20 ad 20 30 29 20 74 | 68 65 6e 20 67 65 74 20 |Q . 0) t|hen get |
|00002200| 6f 66 66 73 65 74 28 22 | d5 22 2c 74 61 67 29 0d |offset("|.",tag).|
|00002210| 69 66 20 69 74 20 3d 20 | 30 20 6f 72 20 28 69 74 |if it = |0 or (it|
|00002220| 20 3e 20 6e 65 78 74 45 | 51 20 61 6e 64 20 6e 65 | > nextE|Q and ne|
|00002230| 78 74 45 51 20 ad 20 30 | 29 20 74 68 65 6e 0d 70 |xtEQ . 0|) then.p|
|00002240| 72 6f 63 45 72 72 6f 72 | 20 72 65 61 64 54 45 58 |rocError| readTEX|
|00002250| 54 28 22 54 45 58 54 22 | 2c 34 37 30 35 29 26 22 |T("TEXT"|,4705)&"|
|00002260| 20 20 20 22 26 74 68 65 | 54 61 67 0d 65 6e 64 20 | "&the|Tag.end |
|00002270| 69 66 0d 65 6c 73 65 20 | 67 65 74 20 6f 66 66 73 |if.else |get offs|
|00002280| 65 74 28 22 20 22 2c 74 | 61 67 29 0d 69 66 20 69 |et(" ",t|ag).if i|
|00002290| 74 20 3d 20 30 20 74 68 | 65 6e 20 67 65 74 20 6c |t = 0 th|en get l|
|000022a0| 65 6e 67 74 68 28 74 61 | 67 29 0d 70 75 74 20 74 |ength(ta|g).put t|
|000022b0| 72 69 6d 28 63 68 61 72 | 20 31 20 74 6f 20 28 69 |rim(char| 1 to (i|
|000022c0| 74 2d 31 29 20 6f 66 20 | 74 61 67 29 20 69 6e 74 |t-1) of |tag) int|
|000022d0| 6f 20 74 68 65 56 61 6c | 75 65 0d 69 66 20 69 74 |o theVal|ue.if it|
|000022e0| 65 6d 20 31 20 6f 66 20 | 6c 69 6e 65 20 4c 20 6f |em 1 of |line L o|
|000022f0| 66 20 61 74 74 72 4c 69 | 73 74 20 3d 20 61 74 74 |f attrLi|st = att|
|00002300| 72 20 74 68 65 6e 20 72 | 65 74 75 72 6e 20 74 68 |r then r|eturn th|
|00002310| 65 56 61 6c 75 65 0d 70 | 75 74 20 74 68 65 56 61 |eValue.p|ut theVa|
|00002320| 6c 75 65 20 69 6e 74 6f | 20 69 74 65 6d 20 32 20 |lue into| item 2 |
|00002330| 6f 66 20 6c 69 6e 65 20 | 4c 20 6f 66 20 61 74 74 |of line |L of att|
|00002340| 72 4c 69 73 74 0d 64 65 | 6c 65 74 65 20 63 68 61 |rList.de|lete cha|
|00002350| 72 20 31 20 74 6f 20 69 | 74 20 6f 66 20 74 61 67 |r 1 to i|t of tag|
|00002360| 0d 61 64 64 20 31 20 74 | 6f 20 4c 0d 65 6e 64 20 |.add 1 t|o L.end |
|00002370| 72 65 70 65 61 74 0d 69 | 66 20 61 74 74 72 20 3d |repeat.i|f attr =|
|00002380| 20 22 22 20 74 68 65 6e | 20 72 65 74 75 72 6e 20 | "" then| return |
|00002390| 61 74 74 72 4c 69 73 74 | 20 65 6c 73 65 20 72 65 |attrList| else re|
|000023a0| 74 75 72 6e 20 22 22 0d | 65 6e 64 20 67 65 74 41 |turn "".|end getA|
|000023b0| 74 74 72 4c 69 73 74 0d | 0d 66 75 6e 63 74 69 6f |ttrList.|.functio|
|000023c0| 6e 20 67 65 74 4e 61 6d | 65 20 64 65 66 0d 67 6c |n getNam|e def.gl|
|000023d0| 6f 62 61 6c 20 74 6f 6f | 6c 50 61 6c 65 74 74 65 |obal too|lPalette|
|000023e0| 0d 73 68 6f 77 44 69 61 | 6c 6f 67 20 32 2c 34 37 |.showDia|log 2,47|
|000023f0| 34 37 2c 22 45 6e 74 65 | 72 20 74 68 65 20 6e 61 |47,"Ente|r the na|
|00002400| 6d 65 20 66 6f 72 20 74 | 68 69 73 20 74 61 67 3a |me for t|his tag:|
|00002410| 22 2c 2c 64 65 66 2c 67 | 59 28 35 30 29 2c 67 58 |",,def,g|Y(50),gX|
|00002420| 28 31 32 35 29 0d 67 65 | 74 20 74 68 65 20 72 65 |(125).ge|t the re|
|00002430| 73 75 6c 74 0d 69 66 20 | 69 74 20 3d 20 22 22 20 |sult.if |it = "" |
|00002440| 74 68 65 6e 0d 73 65 74 | 20 74 68 65 20 68 69 6c |then.set| the hil|
|00002450| 69 74 65 64 42 75 74 74 | 6f 6e 20 6f 66 20 77 69 |itedButt|on of wi|
|00002460| 6e 64 6f 77 20 74 6f 6f | 6c 50 61 6c 65 74 74 65 |ndow too|lPalette|
|00002470| 20 74 6f 20 30 0d 70 75 | 74 20 46 41 4c 53 45 20 | to 0.pu|t FALSE |
|00002480| 69 6e 74 6f 20 68 69 42 | 74 6e 0d 65 6c 73 65 20 |into hiB|tn.else |
|00002490| 72 65 74 75 72 6e 20 6c | 69 6e 65 20 31 20 6f 66 |return l|ine 1 of|
|000024a0| 20 69 74 0d 65 6e 64 20 | 67 65 74 4e 61 6d 65 0d | it.end |getName.|
|000024b0| 0d 66 75 6e 63 74 69 6f | 6e 20 73 65 72 76 65 72 |.functio|n server|
|000024c0| 46 6f 6c 64 65 72 20 66 | 70 4e 61 6d 65 2c 66 4e |Folder f|pName,fN|
|000024d0| 61 6d 65 0d 69 66 20 63 | 64 20 66 6c 64 20 69 64 |ame.if c|d fld id|
|000024e0| 20 31 35 20 6f 66 20 63 | 64 20 22 70 72 65 66 73 | 15 of c|d "prefs|
|000024f0| 22 20 3d 20 22 22 20 74 | 68 65 6e 0d 61 6e 73 77 |" = "" t|hen.answ|
|00002500| 65 72 20 72 65 61 64 54 | 45 58 54 28 22 54 45 58 |er readT|EXT("TEX|
|00002510| 54 22 2c 34 37 30 31 29 | 20 77 69 74 68 20 22 4e |T",4701)| with "N|
|00002520| 6f 22 20 6f 72 20 22 59 | 65 73 22 0d 69 66 20 69 |o" or "Y|es".if i|
|00002530| 74 20 3d 20 22 59 65 73 | 22 20 74 68 65 6e 20 73 |t = "Yes|" then s|
|00002540| 65 6e 64 20 22 6d 6f 75 | 73 65 55 70 22 20 74 6f |end "mou|seUp" to|
|00002550| 20 63 64 20 62 74 6e 20 | 69 64 20 35 39 20 6f 66 | cd btn |id 59 of|
|00002560| 20 63 64 20 22 70 72 65 | 66 73 22 0d 65 6e 64 20 | cd "pre|fs".end |
|00002570| 69 66 0d 67 65 74 20 63 | 64 20 66 6c 64 20 69 64 |if.get c|d fld id|
|00002580| 20 31 35 20 6f 66 20 63 | 64 20 22 70 72 65 66 73 | 15 of c|d "prefs|
|00002590| 22 0d 69 66 20 63 68 61 | 72 20 31 20 74 6f 20 6c |".if cha|r 1 to l|
|000025a0| 65 6e 67 74 68 28 69 74 | 29 20 6f 66 20 66 70 4e |ength(it|) of fpN|
|000025b0| 61 6d 65 20 3d 20 69 74 | 20 74 68 65 6e 20 2d 2d |ame = it| then --|
|000025c0| 20 61 64 64 20 72 65 6c | 20 70 61 74 68 0d 64 65 | add rel| path.de|
|000025d0| 6c 65 74 65 20 63 68 61 | 72 20 31 20 74 6f 20 6c |lete cha|r 1 to l|
|000025e0| 65 6e 67 74 68 28 69 74 | 29 2d 31 20 6f 66 20 66 |ength(it|)-1 of f|
|000025f0| 70 4e 61 6d 65 0d 72 65 | 74 75 72 6e 20 72 65 70 |pName.re|turn rep|
|00002600| 28 66 70 4e 61 6d 65 2c | 22 3a 22 2c 22 2f 22 29 |(fpName,|":","/")|
|00002610| 20 2d 2d 20 70 72 65 66 | 69 78 20 22 2f 22 26 20 | -- pref|ix "/"& |
|00002620| 3f 0d 65 6c 73 65 20 72 | 65 74 75 72 6e 20 66 4e |?.else r|eturn fN|
|00002630| 61 6d 65 0d 65 6e 64 20 | 73 65 72 76 65 72 46 6f |ame.end |serverFo|
|00002640| 6c 64 65 72 0d 0d 66 75 | 6e 63 74 69 6f 6e 20 73 |lder..fu|nction s|
|00002650| 65 72 76 65 72 4e 61 6d | 65 0d 67 65 74 20 63 64 |erverNam|e.get cd|
|00002660| 20 66 6c 64 20 69 64 20 | 31 34 20 6f 66 20 63 64 | fld id |14 of cd|
|00002670| 20 22 70 72 65 66 73 22 | 0d 69 66 20 69 74 20 3d | "prefs"|.if it =|
|00002680| 20 22 22 20 6f 72 20 69 | 74 20 3d 20 22 77 77 77 | "" or i|t = "www|
|00002690| 2e 66 6f 6f 2e 65 64 75 | 22 20 74 68 65 6e 0d 61 |.foo.edu|" then.a|
|000026a0| 6e 73 77 65 72 20 72 65 | 61 64 54 45 58 54 28 22 |nswer re|adTEXT("|
|000026b0| 54 45 58 54 22 2c 34 37 | 30 32 29 20 77 69 74 68 |TEXT",47|02) with|
|000026c0| 20 22 4e 6f 22 20 6f 72 | 20 22 59 65 73 22 0d 69 | "No" or| "Yes".i|
|000026d0| 66 20 69 74 20 3d 20 22 | 59 65 73 22 20 74 68 65 |f it = "|Yes" the|
|000026e0| 6e 0d 61 73 6b 20 72 65 | 61 64 54 45 58 54 28 22 |n.ask re|adTEXT("|
|000026f0| 54 45 58 54 22 2c 34 37 | 30 33 29 20 77 69 74 68 |TEXT",47|03) with|
|00002700| 20 63 64 20 66 6c 64 20 | 69 64 20 31 34 20 6f 66 | cd fld |id 14 of|
|00002710| 20 63 64 20 22 70 72 65 | 66 73 22 0d 69 66 20 69 | cd "pre|fs".if i|
|00002720| 74 20 ad 20 22 22 20 74 | 68 65 6e 0d 70 75 74 20 |t . "" t|hen.put |
|00002730| 69 74 20 69 6e 74 6f 20 | 63 64 20 66 6c 64 20 69 |it into |cd fld i|
|00002740| 64 20 31 34 20 6f 66 20 | 63 64 20 22 70 72 65 66 |d 14 of |cd "pref|
|00002750| 73 22 0d 65 6e 64 20 69 | 66 0d 65 6c 73 65 20 67 |s".end i|f.else g|
|00002760| 65 74 20 22 22 0d 65 6e | 64 20 69 66 0d 70 75 74 |et "".en|d if.put|
|00002770| 20 69 74 20 69 6e 74 6f | 20 6c 69 6e 65 20 31 20 | it into| line 1 |
|00002780| 6f 66 20 73 65 72 76 65 | 72 49 6e 66 6f 20 2d 2d |of serve|rInfo --|
|00002790| 20 73 65 72 76 65 72 20 | 6e 61 6d 65 0d 70 75 74 | server |name.put|
|000027a0| 20 63 64 20 66 6c 64 20 | 69 64 20 36 36 20 6f 66 | cd fld |id 66 of|
|000027b0| 20 63 64 20 22 70 72 65 | 66 73 22 20 69 6e 74 6f | cd "pre|fs" into|
|000027c0| 20 6c 69 6e 65 20 32 20 | 6f 66 20 73 65 72 76 65 | line 2 |of serve|
|000027d0| 72 49 6e 66 6f 20 2d 2d | 20 70 6f 72 74 0d 73 65 |rInfo --| port.se|
|000027e0| 6e 64 20 22 73 65 74 53 | 65 72 76 65 72 4e 61 6d |nd "setS|erverNam|
|000027f0| 65 22 20 74 6f 20 63 64 | 20 22 70 72 65 66 73 22 |e" to cd| "prefs"|
|00002800| 0d 72 65 74 75 72 6e 20 | 73 65 72 76 65 72 49 6e |.return |serverIn|
|00002810| 66 6f 0d 65 6e 64 20 73 | 65 72 76 65 72 4e 61 6d |fo.end s|erverNam|
|00002820| 65 0d 0d 66 75 6e 63 74 | 69 6f 6e 20 67 65 74 42 |e..funct|ion getB|
|00002830| 72 6f 77 73 65 72 0d 70 | 75 74 20 63 64 20 66 6c |rowser.p|ut cd fl|
|00002840| 64 20 69 64 20 37 38 20 | 6f 66 20 63 64 20 22 70 |d id 78 |of cd "p|
|00002850| 72 65 66 73 22 20 69 6e | 74 6f 20 74 68 65 42 72 |refs" in|to theBr|
|00002860| 6f 77 73 65 72 50 61 74 | 68 0d 72 65 70 65 61 74 |owserPat|h.repeat|
|00002870| 20 77 68 69 6c 65 20 74 | 68 65 72 65 20 69 73 20 | while t|here is |
|00002880| 6e 6f 74 20 61 6e 20 61 | 70 70 6c 69 63 61 74 69 |not an a|pplicati|
|00002890| 6f 6e 20 74 68 65 42 72 | 6f 77 73 65 72 50 61 74 |on theBr|owserPat|
|000028a0| 68 0d 73 65 6e 64 20 22 | 73 65 74 42 72 6f 77 73 |h.send "|setBrows|
|000028b0| 65 72 50 61 74 68 22 20 | 74 6f 20 63 64 20 69 64 |erPath" |to cd id|
|000028c0| 20 39 39 39 33 0d 70 75 | 74 20 63 64 20 66 6c 64 | 9993.pu|t cd fld|
|000028d0| 20 69 64 20 37 38 20 6f | 66 20 63 64 20 22 70 72 | id 78 o|f cd "pr|
|000028e0| 65 66 73 22 20 69 6e 74 | 6f 20 74 68 65 42 72 6f |efs" int|o theBro|
|000028f0| 77 73 65 72 50 61 74 68 | 0d 65 6e 64 20 72 65 70 |wserPath|.end rep|
|00002900| 65 61 74 0d 70 75 74 20 | 6c 65 61 66 4e 61 6d 65 |eat.put |leafName|
|00002910| 28 74 68 65 42 72 6f 77 | 73 65 72 50 61 74 68 29 |(theBrow|serPath)|
|00002920| 20 69 6e 74 6f 20 74 68 | 65 42 72 6f 77 73 65 72 | into th|eBrowser|
|00002930| 0d 70 75 74 20 71 75 6f | 74 65 26 74 68 65 42 72 |.put quo|te&theBr|
|00002940| 6f 77 73 65 72 50 61 74 | 68 26 71 75 6f 74 65 20 |owserPat|h&quote |
|00002950| 69 6e 74 6f 20 74 68 65 | 42 72 6f 77 73 65 72 4e |into the|BrowserN|
|00002960| 61 6d 65 0d 72 65 74 75 | 72 6e 20 74 68 65 42 72 |ame.retu|rn theBr|
|00002970| 6f 77 73 65 72 50 61 74 | 68 0d 65 6e 64 20 67 65 |owserPat|h.end ge|
|00002980| 74 42 72 6f 77 73 65 72 | 0d 0d 66 75 6e 63 74 69 |tBrowser|..functi|
|00002990| 6f 6e 20 68 6f 74 4c 69 | 73 74 0d 73 65 74 20 63 |on hotLi|st.set c|
|000029a0| 75 72 73 6f 72 20 74 6f | 20 77 61 74 63 68 0d 70 |ursor to| watch.p|
|000029b0| 75 74 20 63 64 20 66 6c | 64 20 22 48 6f 74 6c 69 |ut cd fl|d "Hotli|
|000029c0| 73 74 22 20 6f 66 20 63 | 64 20 22 70 72 65 66 73 |st" of c|d "prefs|
|000029d0| 22 20 69 6e 74 6f 20 74 | 68 65 54 65 78 74 0d 70 |" into t|heText.p|
|000029e0| 75 74 20 72 65 70 28 74 | 68 65 54 65 78 74 2c 22 |ut rep(t|heText,"|
|000029f0| 3c 2f 41 3e 22 29 20 69 | 6e 74 6f 20 74 68 65 54 |</A>") i|nto theT|
|00002a00| 65 78 74 0d 70 75 74 20 | 22 22 20 69 6e 74 6f 20 |ext.put |"" into |
|00002a10| 68 6f 74 4c 69 73 74 0d | 69 66 20 74 68 65 54 65 |hotList.|if theTe|
|00002a20| 78 74 20 ad 20 22 22 20 | 74 68 65 6e 0d 70 75 74 |xt . "" |then.put|
|00002a30| 20 72 65 70 28 74 68 65 | 54 65 78 74 2c 22 3b 22 | rep(the|Text,";"|
|00002a40| 29 20 69 6e 74 6f 20 74 | 68 65 54 65 78 74 0d 70 |) into t|heText.p|
|00002a50| 75 74 20 22 22 20 69 6e | 74 6f 20 68 6f 74 4c 69 |ut "" in|to hotLi|
|00002a60| 73 74 0d 72 65 70 65 61 | 74 20 77 69 74 68 20 69 |st.repea|t with i|
|00002a70| 20 3d 20 31 20 74 6f 20 | 6e 75 6d 62 65 72 28 6c | = 1 to |number(l|
|00002a80| 69 6e 65 73 20 69 6e 20 | 74 68 65 54 65 78 74 29 |ines in |theText)|
|00002a90| 0d 70 75 74 20 6c 69 6e | 65 20 69 20 6f 66 20 74 |.put lin|e i of t|
|00002aa0| 68 65 54 65 78 74 20 69 | 6e 74 6f 20 4c 0d 69 66 |heText i|nto L.if|
|00002ab0| 20 63 68 61 72 20 31 20 | 6f 66 20 4c 20 3d 20 22 | char 1 |of L = "|
|00002ac0| 28 22 20 74 68 65 6e 20 | 70 75 74 20 4c 26 72 65 |(" then |put L&re|
|00002ad0| 74 75 72 6e 20 61 66 74 | 65 72 20 68 6f 74 4c 69 |turn aft|er hotLi|
|00002ae0| 73 74 0d 65 6c 73 65 20 | 69 66 20 28 4c 20 ad 20 |st.else |if (L . |
|00002af0| 22 22 29 20 61 6e 64 20 | 28 63 68 61 72 20 31 20 |"") and |(char 1 |
|00002b00| 74 6f 20 32 20 6f 66 20 | 4c 20 ad 20 22 2d 22 26 |to 2 of |L . "-"&|
|00002b10| 22 2d 22 29 20 61 6e 64 | 20 28 63 68 61 72 20 31 |"-") and| (char 1|
|00002b20| 20 6f 66 20 4c 20 ad 20 | 22 23 22 29 20 74 68 65 | of L . |"#") the|
|00002b30| 6e 0d 67 65 74 20 67 65 | 74 41 74 74 72 4c 69 73 |n.get ge|tAttrLis|
|00002b40| 74 28 4c 2c 22 48 52 45 | 46 22 29 0d 69 66 20 69 |t(L,"HRE|F").if i|
|00002b50| 74 20 3d 20 22 22 20 74 | 68 65 6e 20 70 75 74 20 |t = "" t|hen put |
|00002b60| 4c 20 61 66 74 65 72 20 | 68 6f 74 4c 69 73 74 0d |L after |hotList.|
|00002b70| 65 6c 73 65 20 70 75 74 | 20 69 74 20 61 66 74 65 |else put| it afte|
|00002b80| 72 20 68 6f 74 4c 69 73 | 74 0d 67 65 74 20 28 6f |r hotLis|t.get (o|
|00002b90| 66 66 73 65 74 28 22 3e | 22 2c 4c 29 29 0d 69 66 |ffset(">|",L)).if|
|00002ba0| 20 69 74 20 3e 20 30 20 | 74 68 65 6e 20 70 75 74 | it > 0 |then put|
|00002bb0| 20 22 2c 22 26 28 63 68 | 61 72 20 28 69 74 2b 31 | ","&(ch|ar (it+1|
|00002bc0| 29 20 74 6f 20 6c 65 6e | 67 74 68 28 4c 29 20 6f |) to len|gth(L) o|
|00002bd0| 66 20 4c 29 26 72 65 74 | 75 72 6e 20 61 66 74 65 |f L)&ret|urn afte|
|00002be0| 72 20 68 6f 74 4c 69 73 | 74 0d 65 6c 73 65 20 70 |r hotLis|t.else p|
|00002bf0| 75 74 20 72 65 74 75 72 | 6e 20 61 66 74 65 72 20 |ut retur|n after |
|00002c00| 68 6f 74 4c 69 73 74 0d | 65 6e 64 20 69 66 0d 65 |hotList.|end if.e|
|00002c10| 6e 64 20 72 65 70 65 61 | 74 0d 65 6e 64 20 69 66 |nd repea|t.end if|
|00002c20| 0d 70 75 74 20 68 6f 74 | 4c 69 73 74 20 69 6e 74 |.put hot|List int|
|00002c30| 6f 20 63 64 20 62 74 6e | 20 69 64 20 32 30 32 20 |o cd btn| id 202 |
|00002c40| 6f 66 20 63 64 20 69 64 | 20 39 39 39 33 0d 72 65 |of cd id| 9993.re|
|00002c50| 74 75 72 6e 20 68 6f 74 | 4c 69 73 74 0d 65 6e 64 |turn hot|List.end|
|00002c60| 20 68 6f 74 4c 69 73 74 | 0d 0d 66 75 6e 63 74 69 | hotList|..functi|
|00002c70| 6f 6e 20 67 65 74 42 61 | 73 65 20 63 64 49 44 0d |on getBa|se cdID.|
|00002c80| 70 75 74 20 66 6c 64 20 | 22 66 75 6c 6c 50 61 74 |put fld |"fullPat|
|00002c90| 68 4e 61 6d 65 22 20 6f | 66 20 63 64 20 69 64 20 |hName" o|f cd id |
|00002ca0| 63 64 49 44 20 69 6e 74 | 6f 20 66 70 6e 0d 69 66 |cdID int|o fpn.if|
|00002cb0| 20 66 70 6e 20 3d 20 22 | 22 20 74 68 65 6e 20 72 | fpn = "|" then r|
|00002cc0| 65 74 75 72 6e 20 22 22 | 0d 70 75 74 20 63 64 20 |eturn ""|.put cd |
|00002cd0| 66 6c 64 20 69 64 20 31 | 35 20 6f 66 20 63 64 20 |fld id 1|5 of cd |
|00002ce0| 22 70 72 65 66 73 22 20 | 69 6e 74 6f 20 73 65 72 |"prefs" |into ser|
|00002cf0| 76 65 72 50 61 74 68 20 | 2d 2d 20 65 78 69 73 74 |verPath |-- exist|
|00002d00| 73 3f 0d 67 65 74 20 69 | 74 65 6d 20 32 20 6f 66 |s?.get i|tem 2 of|
|00002d10| 20 66 69 6c 65 53 79 73 | 49 6e 66 6f 28 73 65 72 | fileSys|Info(ser|
|00002d20| 76 65 72 50 61 74 68 29 | 0d 69 66 20 28 69 74 20 |verPath)|.if (it |
|00002d30| ad 20 22 46 6f 6c 64 65 | 72 22 20 61 6e 64 20 69 |. "Folde|r" and i|
|00002d40| 74 20 ad 20 22 44 69 73 | 63 22 29 20 74 68 65 6e |t . "Dis|c") then|
|00002d50| 20 72 65 74 75 72 6e 20 | 22 22 20 2d 2d 20 69 6e | return |"" -- in|
|00002d60| 76 61 6c 69 64 20 70 61 | 74 68 0d 70 75 74 20 63 |valid pa|th.put c|
|00002d70| 64 20 66 6c 64 20 69 64 | 20 39 20 6f 66 20 63 64 |d fld id| 9 of cd|
|00002d80| 20 22 70 72 65 66 73 22 | 20 69 6e 74 6f 20 73 65 | "prefs"| into se|
|00002d90| 72 76 65 72 55 52 4c 20 | 2d 2d 20 65 6d 70 74 79 |rverURL |-- empty|
|00002da0| 3f 0d 70 75 74 20 73 65 | 72 76 65 72 46 6f 6c 64 |?.put se|rverFold|
|00002db0| 65 72 28 66 70 6e 29 20 | 69 6e 74 6f 20 74 68 65 |er(fpn) |into the|
|00002dc0| 50 61 74 68 0d 69 66 20 | 28 73 65 72 76 65 72 55 |Path.if |(serverU|
|00002dd0| 52 4c 20 ad 20 22 22 29 | 20 61 6e 64 20 28 74 68 |RL . "")| and (th|
|00002de0| 65 50 61 74 68 20 ad 20 | 22 22 29 20 74 68 65 6e |ePath . |"") then|
|00002df0| 0d 64 65 6c 65 74 65 20 | 63 68 61 72 20 31 20 6f |.delete |char 1 o|
|00002e00| 66 20 74 68 65 50 61 74 | 68 0d 72 65 74 75 72 6e |f thePat|h.return|
|00002e10| 20 22 3c 42 41 53 45 20 | 48 52 45 46 3d 22 26 71 | "<BASE |HREF="&q|
|00002e20| 75 6f 74 65 26 73 65 72 | 76 65 72 55 52 4c 26 74 |uote&ser|verURL&t|
|00002e30| 68 65 50 61 74 68 26 71 | 75 6f 74 65 26 22 3e 22 |hePath&q|uote&">"|
|00002e40| 0d 65 6c 73 65 20 72 65 | 74 75 72 6e 20 22 22 0d |.else re|turn "".|
|00002e50| 65 6e 64 20 67 65 74 42 | 61 73 65 0d 0d 66 75 6e |end getB|ase..fun|
|00002e60| 63 74 69 6f 6e 20 62 67 | 49 44 20 63 64 49 44 0d |ction bg|ID cdID.|
|00002e70| 6c 6f 63 6b 20 73 63 72 | 65 65 6e 0d 6c 6f 63 6b |lock scr|een.lock|
|00002e80| 20 6d 65 73 73 61 67 65 | 73 0d 70 75 73 68 20 63 | message|s.push c|
|00002e90| 64 0d 67 6f 20 63 64 20 | 69 64 20 63 64 49 44 0d |d.go cd |id cdID.|
|00002ea0| 69 66 20 74 68 65 20 72 | 65 73 75 6c 74 20 3d 20 |if the r|esult = |
|00002eb0| 22 22 20 74 68 65 6e 20 | 67 65 74 20 74 68 65 20 |"" then |get the |
|00002ec0| 69 64 20 6f 66 20 74 68 | 69 73 20 62 67 20 65 6c |id of th|is bg el|
|00002ed0| 73 65 20 67 65 74 20 22 | 22 0d 70 6f 70 20 63 64 |se get "|".pop cd|
|00002ee0| 0d 75 6e 6c 6f 63 6b 20 | 73 63 72 65 65 6e 0d 72 |.unlock |screen.r|
|00002ef0| 65 74 75 72 6e 20 69 74 | 0d 65 6e 64 20 62 67 49 |eturn it|.end bgI|
|00002f00| 44 0d 0d 66 75 6e 63 74 | 69 6f 6e 20 64 6f 63 53 |D..funct|ion docS|
|00002f10| 69 7a 65 20 49 44 4c 69 | 73 74 0d 69 66 20 49 44 |ize IDLi|st.if ID|
|00002f20| 4c 69 73 74 20 3d 20 22 | 22 20 74 68 65 6e 20 70 |List = "|" then p|
|00002f30| 75 74 20 74 68 65 20 73 | 68 6f 72 74 20 69 64 20 |ut the s|hort id |
|00002f40| 6f 66 20 74 68 69 73 20 | 63 64 20 69 6e 74 6f 20 |of this |cd into |
|00002f50| 49 44 4c 69 73 74 0d 67 | 65 74 20 30 0d 72 65 70 |IDList.g|et 0.rep|
|00002f60| 65 61 74 20 77 69 74 68 | 20 69 20 3d 20 31 20 74 |eat with| i = 1 t|
|00002f70| 6f 20 6e 75 6d 62 65 72 | 28 69 74 65 6d 73 20 69 |o number|(items i|
|00002f80| 6e 20 49 44 4c 69 73 74 | 29 0d 70 75 74 20 69 74 |n IDList|).put it|
|00002f90| 65 6d 20 69 20 6f 66 20 | 49 44 4c 69 73 74 20 69 |em i of |IDList i|
|00002fa0| 6e 74 6f 20 74 68 65 49 | 44 0d 61 64 64 20 6c 65 |nto theI|D.add le|
|00002fb0| 6e 67 74 68 28 66 6c 64 | 20 22 48 65 61 64 65 72 |ngth(fld| "Header|
|00002fc0| 22 20 6f 66 20 63 64 20 | 69 64 20 74 68 65 49 44 |" of cd |id theID|
|00002fd0| 29 2b 6c 65 6e 67 74 68 | 28 66 6c 64 20 22 62 6f |)+length|(fld "bo|
|00002fe0| 64 79 22 20 6f 66 20 63 | 64 20 69 64 20 74 68 65 |dy" of c|d id the|
|00002ff0| 49 44 29 2b 6c 65 6e 67 | 74 68 28 66 6c 64 20 22 |ID)+leng|th(fld "|
|00003000| 66 6f 6f 74 65 72 22 20 | 6f 66 20 63 64 20 69 64 |footer" |of cd id|
|00003010| 20 74 68 65 49 44 29 20 | 74 6f 20 69 74 0d 65 6e | theID) |to it.en|
|00003020| 64 20 72 65 70 65 61 74 | 0d 72 65 74 75 72 6e 20 |d repeat|.return |
|00003030| 69 74 0d 65 6e 64 20 64 | 6f 63 53 69 7a 65 0d 0d |it.end d|ocSize..|
|00003040| 66 75 6e 63 74 69 6f 6e | 20 64 6f 63 43 6f 75 6e |function| docCoun|
|00003050| 74 0d 72 65 74 75 72 6e | 20 6e 75 6d 62 65 72 28 |t.return| number(|
|00003060| 63 64 73 20 69 6e 20 62 | 67 20 22 45 64 69 74 6f |cds in b|g "Edito|
|00003070| 72 22 29 0d 65 6e 64 20 | 64 6f 63 43 6f 75 6e 74 |r").end |docCount|
|00003080| 0d 0d 66 75 6e 63 74 69 | 6f 6e 20 67 72 65 70 43 |..functi|on grepC|
|00003090| 6f 6e 76 65 72 74 20 69 | 0d 67 6c 6f 62 61 6c 20 |onvert i|.global |
|000030a0| 4c 46 2c 46 46 0d 67 65 | 74 20 72 65 70 28 69 74 |LF,FF.ge|t rep(it|
|000030b0| 2c 22 5c 66 22 2c 46 46 | 29 0d 67 65 74 20 72 65 |,"\f",FF|).get re|
|000030c0| 70 28 69 2c 22 5c 6c 22 | 2c 4c 46 29 0d 67 65 74 |p(i,"\l"|,LF).get|
|000030d0| 20 72 65 70 28 69 74 2c | 22 5c 6e 22 2c 72 65 74 | rep(it,|"\n",ret|
|000030e0| 75 72 6e 26 4c 46 29 0d | 67 65 74 20 72 65 70 28 |urn&LF).|get rep(|
|000030f0| 69 74 2c 22 5c 71 22 2c | 71 75 6f 74 65 29 0d 67 |it,"\q",|quote).g|
|00003100| 65 74 20 72 65 70 28 69 | 74 2c 22 5c 72 22 2c 72 |et rep(i|t,"\r",r|
|00003110| 65 74 75 72 6e 29 0d 67 | 65 74 20 72 65 70 28 69 |eturn).g|et rep(i|
|00003120| 74 2c 22 5c 73 22 2c 22 | 20 22 29 0d 67 65 74 20 |t,"\s","| ").get |
|00003130| 72 65 70 28 69 74 2c 22 | 5c 74 22 2c 74 61 62 29 |rep(it,"|\t",tab)|
|00003140| 0d 72 65 74 75 72 6e 20 | 69 74 0d 65 6e 64 20 67 |.return |it.end g|
|00003150| 72 65 70 43 6f 6e 76 65 | 72 74 0d 0d 66 75 6e 63 |repConve|rt..func|
|00003160| 74 69 6f 6e 20 69 6e 73 | 65 72 74 44 61 74 65 54 |tion ins|ertDateT|
|00003170| 69 6d 65 20 74 68 65 54 | 65 78 74 0d 67 6c 6f 62 |ime theT|ext.glob|
|00003180| 61 6c 20 63 75 73 74 6f | 6d 45 6e 74 69 74 69 65 |al custo|mEntitie|
|00003190| 73 2c 63 75 73 74 6f 6d | 53 74 72 69 6e 67 73 0d |s,custom|Strings.|
|000031a0| 72 65 70 65 61 74 20 77 | 69 74 68 20 69 20 3d 20 |repeat w|ith i = |
|000031b0| 31 20 74 6f 20 35 0d 64 | 6f 20 22 67 65 74 20 74 |1 to 5.d|o "get t|
|000031c0| 68 65 22 26 26 69 74 65 | 6d 20 69 20 6f 66 20 63 |he"&&ite|m i of c|
|000031d0| 75 73 74 6f 6d 53 74 72 | 69 6e 67 73 0d 70 75 74 |ustomStr|ings.put|
|000031e0| 20 72 65 70 28 74 68 65 | 54 65 78 74 2c 69 74 65 | rep(the|Text,ite|
|000031f0| 6d 20 69 20 6f 66 20 63 | 75 73 74 6f 6d 45 6e 74 |m i of c|ustomEnt|
|00003200| 69 74 69 65 73 2c 69 74 | 29 20 69 6e 74 6f 20 74 |ities,it|) into t|
|00003210| 68 65 54 65 78 74 0d 65 | 6e 64 20 72 65 70 65 61 |heText.e|nd repea|
|00003220| 74 0d 72 65 74 75 72 6e | 20 74 68 65 54 65 78 74 |t.return| theText|
|00003230| 0d 65 6e 64 20 69 6e 73 | 65 72 74 44 61 74 65 54 |.end ins|ertDateT|
|00003240| 69 6d 65 0d 0d 0d 66 75 | 6e 63 74 69 6f 6e 20 63 |ime...fu|nction c|
|00003250| 6f 70 79 48 54 4d 4c 20 | 74 61 67 2c 66 6c 64 49 |opyHTML |tag,fldI|
|00003260| 44 2c 63 64 49 44 2c 6d | 6f 64 65 20 2d 2d 20 6d |D,cdID,m|ode -- m|
|00003270| 6f 64 65 20 3d 20 63 75 | 74 3f 20 6f 74 68 65 72 |ode = cu|t? other|
|00003280| 77 69 73 65 20 63 6f 70 | 79 0d 2d 2d 20 73 69 6e |wise cop|y.-- sin|
|00003290| 67 6c 65 20 74 61 67 73 | 3b 20 72 65 74 75 72 6e |gle tags|; return|
|000032a0| 73 20 6c 69 73 74 20 6f | 66 20 61 6c 6c 2c 20 65 |s list o|f all, e|
|000032b0| 67 2e 20 28 22 3c 4d 45 | 54 41 22 2c 33 32 31 29 |g. ("<ME|TA",321)|
|000032c0| 0d 70 75 74 20 22 22 20 | 69 6e 74 6f 20 74 68 65 |.put "" |into the|
|000032d0| 4c 69 73 74 0d 70 75 74 | 20 30 20 69 6e 74 6f 20 |List.put| 0 into |
|000032e0| 74 50 74 72 0d 70 75 74 | 20 30 20 69 6e 74 6f 20 |tPtr.put| 0 into |
|000032f0| 63 6f 75 6e 74 0d 69 66 | 20 63 64 49 44 20 3d 20 |count.if| cdID = |
|00003300| 22 22 20 74 68 65 6e 20 | 70 75 74 20 74 68 65 20 |"" then |put the |
|00003310| 73 68 6f 72 74 20 69 64 | 20 6f 66 20 74 68 69 73 |short id| of this|
|00003320| 20 63 64 20 69 6e 74 6f | 20 63 64 49 44 0d 72 65 | cd into| cdID.re|
|00003330| 70 65 61 74 20 77 69 74 | 68 20 6b 20 3d 20 31 20 |peat wit|h k = 1 |
|00003340| 74 6f 20 6c 65 6e 67 74 | 68 28 66 6c 64 49 44 29 |to lengt|h(fldID)|
|00003350| 0d 70 75 74 20 63 68 61 | 72 20 6b 20 6f 66 20 66 |.put cha|r k of f|
|00003360| 6c 64 49 44 20 69 6e 74 | 6f 20 69 0d 67 65 74 20 |ldID int|o i.get |
|00003370| 66 6c 64 20 69 64 20 69 | 20 6f 66 20 63 64 20 69 |fld id i| of cd i|
|00003380| 64 20 63 64 49 44 0d 72 | 65 70 65 61 74 20 77 68 |d cdID.r|epeat wh|
|00003390| 69 6c 65 20 74 61 67 20 | 69 73 20 69 6e 20 69 74 |ile tag |is in it|
|000033a0| 0d 70 75 74 20 6f 66 66 | 73 65 74 28 74 61 67 2c |.put off|set(tag,|
|000033b0| 69 74 29 20 69 6e 74 6f | 20 6f 74 61 67 0d 70 75 |it) into| otag.pu|
|000033c0| 74 20 6e 65 78 74 49 6e | 73 74 61 6e 63 65 28 69 |t nextIn|stance(i|
|000033d0| 74 2c 22 3e 22 2c 6f 74 | 61 67 29 20 69 6e 74 6f |t,">",ot|ag) into|
|000033e0| 20 65 54 61 67 0d 69 66 | 20 6f 74 61 67 20 ad 20 | eTag.if| otag . |
|000033f0| 30 20 61 6e 64 20 65 54 | 61 67 20 ad 20 22 22 20 |0 and eT|ag . "" |
|00003400| 74 68 65 6e 0d 61 64 64 | 20 31 20 74 6f 20 63 6f |then.add| 1 to co|
|00003410| 75 6e 74 0d 70 75 74 20 | 72 65 70 28 63 68 61 72 |unt.put |rep(char|
|00003420| 20 6f 74 61 67 20 74 6f | 20 65 54 61 67 20 6f 66 | otag to| eTag of|
|00003430| 20 69 74 2c 72 65 74 75 | 72 6e 2c 22 c5 c5 22 29 | it,retu|rn,"..")|
|00003440| 20 69 6e 74 6f 20 6c 69 | 6e 65 20 63 6f 75 6e 74 | into li|ne count|
|00003450| 20 6f 66 20 74 68 65 4c | 69 73 74 0d 64 65 6c 65 | of theL|ist.dele|
|00003460| 74 65 20 63 68 61 72 20 | 6f 74 61 67 20 74 6f 20 |te char |otag to |
|00003470| 65 54 61 67 20 6f 66 20 | 69 74 0d 69 66 20 6d 6f |eTag of |it.if mo|
|00003480| 64 65 20 3d 20 22 63 75 | 74 22 20 74 68 65 6e 20 |de = "cu|t" then |
|00003490| 64 65 6c 65 74 65 20 63 | 68 61 72 20 6f 74 61 67 |delete c|har otag|
|000034a0| 20 74 6f 20 65 54 61 67 | 20 6f 66 20 66 6c 64 20 | to eTag| of fld |
|000034b0| 69 64 20 69 20 6f 66 20 | 63 64 20 69 64 20 63 64 |id i of |cd id cd|
|000034c0| 49 44 0d 65 6e 64 20 69 | 66 0d 65 6e 64 20 72 65 |ID.end i|f.end re|
|000034d0| 70 65 61 74 0d 65 6e 64 | 20 72 65 70 65 61 74 0d |peat.end| repeat.|
|000034e0| 72 65 74 75 72 6e 20 72 | 65 70 28 74 68 65 4c 69 |return r|ep(theLi|
|000034f0| 73 74 2c 22 c5 c5 22 2c | 72 65 74 75 72 6e 29 0d |st,"..",|return).|
|00003500| 65 6e 64 20 63 6f 70 79 | 48 54 4d 4c 0d 0d 0d 66 |end copy|HTML...f|
|00003510| 75 6e 63 74 69 6f 6e 20 | 63 61 72 64 4c 69 73 74 |unction |cardList|
|00003520| 20 62 67 49 44 2c 70 72 | 65 66 69 78 0d 70 75 74 | bgID,pr|efix.put|
|00003530| 20 22 22 20 69 6e 74 6f | 20 69 64 78 0d 72 65 70 | "" into| idx.rep|
|00003540| 65 61 74 20 77 69 74 68 | 20 69 20 3d 20 31 20 74 |eat with| i = 1 t|
|00003550| 6f 20 6e 75 6d 62 65 72 | 28 63 64 73 20 69 6e 20 |o number|(cds in |
|00003560| 62 67 20 69 64 20 62 67 | 49 44 29 0d 69 66 20 70 |bg id bg|ID).if p|
|00003570| 72 65 66 69 78 20 ad 20 | 22 22 20 74 68 65 6e 20 |refix . |"" then |
|00003580| 67 65 74 20 70 72 65 66 | 69 78 26 69 26 22 3a 20 |get pref|ix&i&": |
|00003590| 22 20 65 6c 73 65 20 67 | 65 74 20 22 22 0d 70 75 |" else g|et "".pu|
|000035a0| 74 20 69 74 26 28 66 6c | 64 20 22 74 69 74 6c 65 |t it&(fl|d "title|
|000035b0| 22 20 6f 66 20 63 64 20 | 69 20 6f 66 20 62 67 20 |" of cd |i of bg |
|000035c0| 69 64 20 62 67 49 44 29 | 20 26 20 72 65 74 75 72 |id bgID)| & retur|
|000035d0| 6e 20 61 66 74 65 72 20 | 69 64 78 0d 65 6e 64 20 |n after |idx.end |
|000035e0| 72 65 70 65 61 74 0d 72 | 65 74 75 72 6e 20 69 64 |repeat.r|eturn id|
|000035f0| 78 0d 65 6e 64 20 63 61 | 72 64 4c 69 73 74 0d 0d |x.end ca|rdList..|
|00003600| 66 75 6e 63 74 69 6f 6e | 20 64 6f 63 54 69 74 6c |function| docTitl|
|00003610| 65 20 74 68 65 49 44 0d | 69 66 20 74 68 65 49 44 |e theID.|if theID|
|00003620| 20 3d 20 22 22 20 74 68 | 65 6e 0d 69 6e 64 65 78 | = "" th|en.index|
|00003630| 53 74 61 63 6b 0d 61 6e | 73 77 65 72 20 22 45 52 |Stack.an|swer "ER|
|00003640| 52 4f 52 20 69 6e 20 49 | 6e 64 65 78 2e 20 50 6c |ROR in I|ndex. Pl|
|00003650| 65 61 73 65 20 74 72 79 | 20 61 67 61 69 6e 2e 22 |ease try| again."|
|00003660| 0d 65 78 69 74 32 48 43 | 0d 65 6e 64 20 69 66 0d |.exit2HC|.end if.|
|00003670| 70 75 74 20 28 66 6c 64 | 20 22 48 65 61 64 65 72 |put (fld| "Header|
|00003680| 22 20 6f 66 20 63 64 20 | 69 64 20 74 68 65 49 44 |" of cd |id theID|
|00003690| 29 20 26 20 28 66 6c 64 | 20 22 42 6f 64 79 22 20 |) & (fld| "Body" |
|000036a0| 6f 66 20 63 64 20 69 64 | 20 74 68 65 49 44 29 20 |of cd id| theID) |
|000036b0| 26 20 28 66 6c 64 20 22 | 46 6f 6f 74 65 72 22 20 |& (fld "|Footer" |
|000036c0| 6f 66 20 63 64 20 69 64 | 20 74 68 65 49 44 29 20 |of cd id| theID) |
|000036d0| 69 6e 74 6f 20 74 68 65 | 54 65 78 74 0d 70 75 74 |into the|Text.put|
|000036e0| 20 6f 66 66 73 65 74 28 | 22 3c 54 49 54 4c 45 3e | offset(|"<TITLE>|
|000036f0| 22 2c 74 68 65 54 65 78 | 74 29 20 69 6e 74 6f 20 |",theTex|t) into |
|00003700| 73 54 69 74 6c 65 0d 70 | 75 74 20 6f 66 66 73 65 |sTitle.p|ut offse|
|00003710| 74 28 22 3c 2f 54 49 54 | 4c 45 3e 22 2c 74 68 65 |t("</TIT|LE>",the|
|00003720| 54 65 78 74 29 20 69 6e | 74 6f 20 65 54 69 74 6c |Text) in|to eTitl|
|00003730| 65 0d 69 66 20 73 54 69 | 74 6c 65 20 ad 20 30 20 |e.if sTi|tle . 0 |
|00003740| 61 6e 64 20 65 54 69 74 | 6c 65 20 ad 20 30 20 74 |and eTit|le . 0 t|
|00003750| 68 65 6e 0d 67 65 74 20 | 72 65 70 28 28 63 68 61 |hen.get |rep((cha|
|00003760| 72 20 28 73 54 69 74 6c | 65 2b 37 29 20 74 6f 20 |r (sTitl|e+7) to |
|00003770| 28 65 54 69 74 6c 65 2d | 31 29 20 6f 66 20 74 68 |(eTitle-|1) of th|
|00003780| 65 54 65 78 74 29 2c 72 | 65 74 75 72 6e 2c 22 20 |eText),r|eturn," |
|00003790| 22 29 0d 72 65 74 75 72 | 6e 20 72 65 70 28 69 74 |").retur|n rep(it|
|000037a0| 2c 22 20 20 22 2c 22 20 | 22 29 0d 65 6c 73 65 20 |," "," |").else |
|000037b0| 72 65 74 75 72 6e 20 22 | 5b 75 6e 74 69 74 6c 65 |return "|[untitle|
|000037c0| 64 3a 5d 20 d4 22 26 28 | 66 6c 64 20 69 64 20 31 |d:] ."&(|fld id 1|
|000037d0| 35 20 6f 66 20 63 64 20 | 69 64 20 74 68 65 49 44 |5 of cd |id theID|
|000037e0| 29 26 22 d5 22 0d 65 6e | 64 20 64 6f 63 54 69 74 |)&".".en|d docTit|
|000037f0| 6c 65 0d 0d 66 75 6e 63 | 74 69 6f 6e 20 67 65 74 |le..func|tion get|
|00003800| 50 61 74 68 20 6d 20 2d | 2d 20 44 4c 4f 47 2c 20 |Path m -|- DLOG, |
|00003810| 72 65 74 75 72 6e 20 61 | 20 70 61 74 68 0d 67 6c |return a| path.gl|
|00003820| 6f 62 61 6c 20 65 72 72 | 47 6c 6f 62 61 6c 0d 67 |obal err|Global.g|
|00003830| 65 74 20 66 75 6c 6c 53 | 46 50 61 63 6b 28 22 46 |et fullS|FPack("F|
|00003840| 22 2c 6d 29 0d 2d 2d 20 | 61 6e 73 77 65 72 20 66 |",m).-- |answer f|
|00003850| 6f 6c 64 65 72 20 6d 0d | 69 66 20 65 72 72 47 6c |older m.|if errGl|
|00003860| 6f 62 61 6c 20 ad 20 22 | 22 20 74 68 65 6e 0d 61 |obal . "|" then.a|
|00003870| 6e 73 77 65 72 20 22 45 | 52 52 4f 52 3a 22 26 72 |nswer "E|RROR:"&r|
|00003880| 65 74 75 72 6e 26 22 d2 | 22 20 26 20 65 72 72 47 |eturn&".|" & errG|
|00003890| 6c 6f 62 61 6c 20 26 20 | 22 d3 22 0d 70 75 74 20 |lobal & |".".put |
|000038a0| 22 22 20 69 6e 74 6f 20 | 65 72 72 47 6c 6f 62 61 |"" into |errGloba|
|000038b0| 6c 0d 65 6e 64 20 69 66 | 0d 72 65 74 75 72 6e 20 |l.end if|.return |
|000038c0| 69 74 0d 65 6e 64 20 67 | 65 74 50 61 74 68 0d 0d |it.end g|etPath..|
|000038d0| 66 75 6e 63 74 69 6f 6e | 20 66 6f 6f 74 65 72 54 |function| footerT|
|000038e0| 61 67 0d 69 66 20 74 68 | 65 20 68 69 6c 69 74 65 |ag.if th|e hilite|
|000038f0| 20 6f 66 20 63 64 20 62 | 74 6e 20 69 64 20 38 32 | of cd b|tn id 82|
|00003900| 20 6f 66 20 63 64 20 22 | 70 72 65 66 73 22 20 74 | of cd "|prefs" t|
|00003910| 68 65 6e 0d 67 65 74 20 | 63 64 20 66 6c 64 20 69 |hen.get |cd fld i|
|00003920| 64 20 38 33 20 6f 66 20 | 63 64 20 22 70 72 65 66 |d 83 of |cd "pref|
|00003930| 73 22 0d 69 66 20 69 74 | 20 3d 20 22 22 20 74 68 |s".if it| = "" th|
|00003940| 65 6e 20 72 65 74 75 72 | 6e 20 22 3c 21 2d 2d 46 |en retur|n "<!--F|
|00003950| 4f 4f 54 2d 2d 3e 22 20 | 65 6c 73 65 20 72 65 74 |OOT-->" |else ret|
|00003960| 75 72 6e 20 69 74 0d 65 | 6c 73 65 20 72 65 74 75 |urn it.e|lse retu|
|00003970| 72 6e 20 22 22 0d 65 6e | 64 20 66 6f 6f 74 65 72 |rn "".en|d footer|
|00003980| 54 61 67 0d 0d 66 75 6e | 63 74 69 6f 6e 20 7a 6f |Tag..fun|ction zo|
|00003990| 6f 6d 4f 4b 0d 72 65 74 | 75 72 6e 20 74 68 65 20 |omOK.ret|urn the |
|000039a0| 68 65 69 67 68 74 20 6f | 66 20 63 64 20 77 69 6e |height o|f cd win|
|000039b0| 64 6f 77 20 2d 20 62 6f | 74 74 6f 6d 20 6f 66 20 |dow - bo|ttom of |
|000039c0| 62 67 20 62 74 6e 20 22 | 67 72 6f 77 52 65 63 74 |bg btn "|growRect|
|000039d0| 22 20 3d 20 33 20 61 6e | 64 20 74 68 65 20 77 69 |" = 3 an|d the wi|
|000039e0| 64 74 68 20 6f 66 20 63 | 64 20 77 69 6e 64 6f 77 |dth of c|d window|
|000039f0| 20 2d 20 72 69 67 68 74 | 20 6f 66 20 62 67 20 62 | - right| of bg b|
|00003a00| 74 6e 20 22 67 72 6f 77 | 52 65 63 74 22 20 3d 20 |tn "grow|Rect" = |
|00003a10| 33 0d 65 6e 64 20 7a 6f | 6f 6d 4f 4b 0d 0d 66 75 |3.end zo|omOK..fu|
|00003a20| 6e 63 74 69 6f 6e 20 67 | 58 20 78 4f 66 66 0d 67 |nction g|X xOff.g|
|00003a30| 65 74 20 67 65 74 4d 6f | 64 65 28 29 0d 69 66 20 |et getMo|de().if |
|00003a40| 6e 75 6d 62 65 72 20 6f | 66 20 6c 69 6e 65 73 20 |number o|f lines |
|00003a50| 69 6e 20 69 74 20 3d 20 | 31 20 74 68 65 6e 0d 72 |in it = |1 then.r|
|00003a60| 65 74 75 72 6e 20 74 72 | 75 6e 63 28 69 74 65 6d |eturn tr|unc(item|
|00003a70| 20 36 20 6f 66 20 69 74 | 2f 32 20 2d 20 69 74 65 | 6 of it|/2 - ite|
|00003a80| 6d 20 31 20 6f 66 20 74 | 68 65 20 6c 6f 63 20 6f |m 1 of t|he loc o|
|00003a90| 66 20 63 64 20 77 69 6e | 64 6f 77 29 20 2d 20 78 |f cd win|dow) - x|
|00003aa0| 4f 66 66 0d 65 6c 73 65 | 20 69 66 20 6e 75 6d 62 |Off.else| if numb|
|00003ab0| 65 72 20 6f 66 20 6c 69 | 6e 65 73 20 69 6e 20 69 |er of li|nes in i|
|00003ac0| 74 20 3d 20 32 20 74 68 | 65 6e 20 2d 2d 20 32 20 |t = 2 th|en -- 2 |
|00003ad0| 6d 6f 6e 69 74 6f 72 73 | 0d 69 66 20 74 72 75 65 |monitors|.if true|
|00003ae0| 0d 74 68 65 6e 20 72 65 | 74 75 72 6e 20 74 72 75 |.then re|turn tru|
|00003af0| 6e 63 28 69 74 65 6d 20 | 36 20 6f 66 20 6c 69 6e |nc(item |6 of lin|
|00003b00| 65 20 31 20 6f 66 20 69 | 74 2f 32 20 2d 20 69 74 |e 1 of i|t/2 - it|
|00003b10| 65 6d 20 31 20 6f 66 20 | 74 68 65 20 6c 6f 63 20 |em 1 of |the loc |
|00003b20| 6f 66 20 63 64 20 77 69 | 6e 64 6f 77 29 20 2d 20 |of cd wi|ndow) - |
|00003b30| 78 4f 66 66 0d 65 6c 73 | 65 20 72 65 74 75 72 6e |xOff.els|e return|
|00003b40| 20 74 72 75 6e 63 28 69 | 74 65 6d 20 36 20 6f 66 | trunc(i|tem 6 of|
|00003b50| 20 6c 69 6e 65 20 32 20 | 6f 66 20 69 74 2f 32 20 | line 2 |of it/2 |
|00003b60| 2d 20 69 74 65 6d 20 31 | 20 6f 66 20 74 68 65 20 |- item 1| of the |
|00003b70| 6c 6f 63 20 6f 66 20 63 | 64 20 77 69 6e 64 6f 77 |loc of c|d window|
|00003b80| 29 20 2d 20 78 4f 66 66 | 20 2b 20 69 74 65 6d 20 |) - xOff| + item |
|00003b90| 36 20 6f 66 20 6c 69 6e | 65 20 31 20 6f 66 20 69 |6 of lin|e 1 of i|
|00003ba0| 74 0d 65 6e 64 20 69 66 | 0d 65 6e 64 20 67 58 0d |t.end if|.end gX.|
|00003bb0| 0d 66 75 6e 63 74 69 6f | 6e 20 67 59 20 79 4f 66 |.functio|n gY yOf|
|00003bc0| 66 0d 72 65 74 75 72 6e | 20 74 72 75 6e 63 28 69 |f.return| trunc(i|
|00003bd0| 74 65 6d 20 34 20 6f 66 | 20 74 68 65 20 73 63 72 |tem 4 of| the scr|
|00003be0| 65 65 6e 52 65 63 74 2f | 32 20 2d 20 69 74 65 6d |eenRect/|2 - item|
|00003bf0| 20 32 20 6f 66 20 74 68 | 65 20 6c 6f 63 20 6f 66 | 2 of th|e loc of|
|00003c00| 20 63 64 20 77 69 6e 64 | 6f 77 29 20 2d 20 79 4f | cd wind|ow) - yO|
|00003c10| 66 66 0d 65 6e 64 20 67 | 59 0d 0d 6f 6e 20 73 65 |ff.end g|Y..on se|
|00003c20| 74 49 6e 66 6f 54 65 78 | 74 0d 69 66 20 74 68 65 |tInfoTex|t.if the|
|00003c30| 72 65 20 69 73 20 61 20 | 77 69 6e 64 6f 77 20 22 |re is a |window "|
|00003c40| 49 6e 66 6f 22 20 74 68 | 65 6e 20 73 65 6e 64 20 |Info" th|en send |
|00003c50| 74 68 65 20 70 61 72 61 | 6d 73 20 74 6f 20 62 67 |the para|ms to bg|
|00003c60| 20 62 74 6e 20 69 64 20 | 35 36 20 6f 66 20 63 64 | btn id |56 of cd|
|00003c70| 20 31 20 6f 66 20 62 67 | 20 22 45 64 69 74 6f 72 | 1 of bg| "Editor|
|00003c80| 22 0d 65 6e 64 20 73 65 | 74 49 6e 66 6f 54 65 78 |".end se|tInfoTex|
|00003c90| 74 0d 0d 6f 6e 20 73 68 | 6f 77 49 6e 66 6f 0d 73 |t..on sh|owInfo.s|
|00003ca0| 65 6e 64 20 74 68 65 20 | 70 61 72 61 6d 73 20 74 |end the |params t|
|00003cb0| 6f 20 62 67 20 62 74 6e | 20 69 64 20 35 36 20 6f |o bg btn| id 56 o|
|00003cc0| 66 20 63 64 20 31 20 6f | 66 20 62 67 20 22 45 64 |f cd 1 o|f bg "Ed|
|00003cd0| 69 74 6f 72 22 0d 65 6e | 64 20 73 68 6f 77 49 6e |itor".en|d showIn|
|00003ce0| 66 6f 0d 0d 6f 6e 20 70 | 61 73 74 65 46 69 6c 65 |fo..on p|asteFile|
|00003cf0| 0d 73 65 6e 64 20 74 68 | 65 20 70 61 72 61 6d 73 |.send th|e params|
|00003d00| 20 74 6f 20 62 67 20 62 | 74 6e 20 69 64 20 33 31 | to bg b|tn id 31|
|00003d10| 20 6f 66 20 63 64 20 31 | 20 6f 66 20 62 67 20 22 | of cd 1| of bg "|
|00003d20| 45 64 69 74 6f 72 22 0d | 65 6e 64 20 70 61 73 74 |Editor".|end past|
|00003d30| 65 46 69 6c 65 0d 0d 6f | 6e 20 73 69 7a 65 57 69 |eFile..o|n sizeWi|
|00003d40| 6e 64 6f 77 0d 6c 6f 63 | 6b 20 73 63 72 65 65 6e |ndow.loc|k screen|
|00003d50| 0d 67 65 74 20 77 69 64 | 74 68 20 6f 66 20 63 64 |.get wid|th of cd|
|00003d60| 20 77 69 6e 64 6f 77 0d | 69 66 20 69 74 20 3c 20 | window.|if it < |
|00003d70| 33 32 30 20 74 68 65 6e | 20 67 65 74 20 33 32 30 |320 then| get 320|
|00003d80| 0d 73 65 74 20 74 68 65 | 20 6c 65 66 74 20 6f 66 |.set the| left of|
|00003d90| 20 62 67 20 62 74 6e 20 | 22 6f 62 73 63 75 72 65 | bg btn |"obscure|
|00003da0| 22 20 74 6f 20 69 74 2d | 31 38 36 0d 73 65 74 20 |" to it-|186.set |
|00003db0| 74 68 65 20 6c 6f 63 20 | 6f 66 20 62 67 20 62 74 |the loc |of bg bt|
|00003dc0| 6e 20 22 69 6e 64 65 78 | 22 20 74 6f 20 69 74 2d |n "index|" to it-|
|00003dd0| 31 37 32 2c 31 30 0d 73 | 65 74 20 74 68 65 20 6c |172,10.s|et the l|
|00003de0| 6f 63 20 6f 66 20 62 67 | 20 62 74 6e 20 22 66 69 |oc of bg| btn "fi|
|00003df0| 72 73 74 22 20 74 6f 20 | 69 74 2d 31 35 32 2c 31 |rst" to |it-152,1|
|00003e00| 30 0d 73 65 74 20 74 68 | 65 20 6c 6f 63 20 6f 66 |0.set th|e loc of|
|00003e10| 20 62 67 20 62 74 6e 20 | 22 70 72 65 76 22 20 74 | bg btn |"prev" t|
|00003e20| 6f 20 69 74 2d 31 33 32 | 2c 31 30 0d 73 65 74 20 |o it-132|,10.set |
|00003e30| 74 68 65 20 6c 6f 63 20 | 6f 66 20 62 67 20 62 74 |the loc |of bg bt|
|00003e40| 6e 20 22 6e 65 78 74 22 | 20 74 6f 20 69 74 2d 31 |n "next"| to it-1|
|00003e50| 31 32 2c 31 30 0d 73 65 | 74 20 74 68 65 20 6c 6f |12,10.se|t the lo|
|00003e60| 63 20 6f 66 20 62 67 20 | 62 74 6e 20 22 6c 61 73 |c of bg |btn "las|
|00003e70| 74 22 20 74 6f 20 69 74 | 2d 39 32 2c 31 30 0d 73 |t" to it|-92,10.s|
|00003e80| 65 74 20 74 68 65 20 6c | 6f 63 20 6f 66 20 62 67 |et the l|oc of bg|
|00003e90| 20 62 74 6e 20 22 72 65 | 74 75 72 6e 22 20 74 6f | btn "re|turn" to|
|00003ea0| 20 69 74 2d 37 32 2c 31 | 30 0d 73 65 74 20 74 68 | it-72,1|0.set th|
|00003eb0| 65 20 6c 6f 63 20 6f 66 | 20 62 67 20 62 74 6e 20 |e loc of| bg btn |
|00003ec0| 22 74 6f 6f 6c 73 22 20 | 74 6f 20 69 74 2d 34 39 |"tools" |to it-49|
|00003ed0| 2c 31 30 0d 73 65 74 20 | 74 68 65 20 6c 6f 63 20 |,10.set |the loc |
|00003ee0| 6f 66 20 62 67 20 62 74 | 6e 20 22 69 6e 66 6f 22 |of bg bt|n "info"|
|00003ef0| 20 74 6f 20 69 74 2d 32 | 38 2c 31 30 0d 73 65 74 | to it-2|8,10.set|
|00003f00| 20 74 68 65 20 6c 6f 63 | 20 6f 66 20 62 67 20 62 | the loc| of bg b|
|00003f10| 74 6e 20 22 68 65 6c 70 | 22 20 74 6f 20 69 74 2d |tn "help|" to it-|
|00003f20| 31 31 2c 31 30 0d 75 6e | 6c 6f 63 6b 20 73 63 72 |11,10.un|lock scr|
|00003f30| 65 65 6e 0d 65 6e 64 20 | 73 69 7a 65 57 69 6e 64 |een.end |sizeWind|
|00003f40| 6f 77 0d 0d 6f 6e 20 73 | 68 6f 77 54 6f 6f 6c 73 |ow..on s|howTools|
|00003f50| 0d 73 65 6e 64 20 74 68 | 65 20 70 61 72 61 6d 73 |.send th|e params|
|00003f60| 20 74 6f 20 62 67 20 62 | 74 6e 20 69 64 20 33 31 | to bg b|tn id 31|
|00003f70| 20 6f 66 20 63 64 20 31 | 20 6f 66 20 62 67 20 22 | of cd 1| of bg "|
|00003f80| 45 64 69 74 6f 72 22 0d | 65 6e 64 20 73 68 6f 77 |Editor".|end show|
|00003f90| 54 6f 6f 6c 73 0d 0d 6f | 6e 20 68 69 64 65 50 61 |Tools..o|n hidePa|
|00003fa0| 6c 65 74 74 65 73 20 6d | 6f 64 65 0d 73 65 6e 64 |lettes m|ode.send|
|00003fb0| 20 74 68 65 20 70 61 72 | 61 6d 73 20 74 6f 20 62 | the par|ams to b|
|00003fc0| 67 20 62 74 6e 20 69 64 | 20 33 31 20 6f 66 20 63 |g btn id| 31 of c|
|00003fd0| 64 20 31 20 6f 66 20 62 | 67 20 22 45 64 69 74 6f |d 1 of b|g "Edito|
|00003fe0| 72 22 0d 65 6e 64 20 68 | 69 64 65 50 61 6c 65 74 |r".end h|idePalet|
|00003ff0| 74 65 73 0d 0d 6f 6e 20 | 73 65 65 6b 50 61 6c 65 |tes..on |seekPale|
|00004000| 74 74 65 73 0d 73 65 6e | 64 20 74 68 65 20 70 61 |ttes.sen|d the pa|
|00004010| 72 61 6d 73 20 74 6f 20 | 62 67 20 62 74 6e 20 69 |rams to |bg btn i|
|00004020| 64 20 33 31 20 6f 66 20 | 63 64 20 31 20 6f 66 20 |d 31 of |cd 1 of |
|00004030| 62 67 20 22 45 64 69 74 | 6f 72 22 0d 65 6e 64 20 |bg "Edit|or".end |
|00004040| 73 65 65 6b 50 61 6c 65 | 74 74 65 73 0d 0d 6f 6e |seekPale|ttes..on|
|00004050| 20 63 6c 6f 73 65 50 61 | 6c 65 74 74 65 73 20 6d | closePa|lettes m|
|00004060| 6f 64 65 0d 73 65 6e 64 | 20 74 68 65 20 70 61 72 |ode.send| the par|
|00004070| 61 6d 73 20 74 6f 20 62 | 67 20 62 74 6e 20 69 64 |ams to b|g btn id|
|00004080| 20 33 31 20 6f 66 20 63 | 64 20 31 20 6f 66 20 62 | 31 of c|d 1 of b|
|00004090| 67 20 22 45 64 69 74 6f | 72 22 0d 65 6e 64 20 63 |g "Edito|r".end c|
|000040a0| 6c 6f 73 65 50 61 6c 65 | 74 74 65 73 0d 0d 6f 6e |losePale|ttes..on|
|000040b0| 20 63 6c 6f 73 65 50 61 | 6c 65 74 74 65 0d 67 6c | closePa|lette.gl|
|000040c0| 6f 62 61 6c 20 74 6f 6f | 6c 50 61 6c 65 74 74 65 |obal too|lPalette|
|000040d0| 2c 48 54 4d 4c 54 6f 6f | 6c 73 5f 76 69 7a 2c 48 |,HTMLToo|ls_viz,H|
|000040e0| 65 6c 70 5f 76 69 7a 2c | 49 6e 66 6f 5f 76 69 7a |elp_viz,|Info_viz|
|000040f0| 0d 67 65 74 20 70 61 72 | 61 6d 28 31 29 0d 69 66 |.get par|am(1).if|
|00004100| 20 22 54 6f 6f 6c 73 22 | 20 69 73 20 69 6e 20 70 | "Tools"| is in p|
|00004110| 61 72 61 6d 28 31 29 20 | 74 68 65 6e 20 67 65 74 |aram(1) |then get|
|00004120| 20 22 48 54 4d 4c 54 6f | 6f 6c 73 22 0d 69 66 20 | "HTMLTo|ols".if |
|00004130| 69 74 20 3d 20 22 48 54 | 4d 4c 54 6f 6f 6c 73 22 |it = "HT|MLTools"|
|00004140| 20 74 68 65 6e 20 70 75 | 74 20 22 22 20 69 6e 74 | then pu|t "" int|
|00004150| 6f 20 74 6f 6f 6c 50 61 | 6c 65 74 74 65 0d 69 66 |o toolPa|lette.if|
|00004160| 20 74 68 65 72 65 20 69 | 73 20 61 20 77 69 6e 64 | there i|s a wind|
|00004170| 6f 77 20 70 61 72 61 6d | 28 31 29 20 74 68 65 6e |ow param|(1) then|
|00004180| 20 70 75 74 20 74 68 65 | 20 6c 6f 63 20 6f 66 20 | put the| loc of |
|00004190| 77 69 6e 64 6f 77 20 70 | 61 72 61 6d 28 31 29 20 |window p|aram(1) |
|000041a0| 69 6e 74 6f 20 63 64 20 | 66 6c 64 20 69 74 20 6f |into cd |fld it o|
|000041b0| 66 20 63 64 20 22 70 72 | 65 66 73 22 0d 64 6f 20 |f cd "pr|efs".do |
|000041c0| 22 70 75 74 20 46 41 4c | 53 45 20 69 6e 74 6f 22 |"put FAL|SE into"|
|000041d0| 26 26 6c 61 73 74 20 77 | 6f 72 64 20 6f 66 20 70 |&&last w|ord of p|
|000041e0| 61 72 61 6d 28 31 29 26 | 22 5f 76 69 7a 22 0d 65 |aram(1)&|"_viz".e|
|000041f0| 6e 64 20 63 6c 6f 73 65 | 50 61 6c 65 74 74 65 0d |nd close|Palette.|
|00004200| 0d 6f 6e 20 75 6e 43 6f | 6d 6d 65 6e 74 0d 73 65 |.on unCo|mment.se|
|00004210| 6e 64 20 74 68 65 20 70 | 61 72 61 6d 73 20 74 6f |nd the p|arams to|
|00004220| 20 62 67 20 62 74 6e 20 | 69 64 20 33 31 20 6f 66 | bg btn |id 31 of|
|00004230| 20 63 64 20 31 20 6f 66 | 20 62 67 20 22 45 64 69 | cd 1 of| bg "Edi|
|00004240| 74 6f 72 22 0d 65 6e 64 | 20 75 6e 43 6f 6d 6d 65 |tor".end| unComme|
|00004250| 6e 74 0d 0d 6f 6e 20 69 | 6e 73 65 72 74 51 75 6f |nt..on i|nsertQuo|
|00004260| 74 65 73 0d 69 66 20 6e | 6f 53 65 6c 65 63 74 69 |tes.if n|oSelecti|
|00004270| 6f 6e 28 29 20 74 68 65 | 6e 20 65 78 69 74 20 69 |on() the|n exit i|
|00004280| 6e 73 65 72 74 51 75 6f | 74 65 73 0d 69 66 20 6c |nsertQuo|tes.if l|
|00004290| 65 6e 67 74 68 28 74 68 | 65 20 73 65 6c 65 63 74 |ength(th|e select|
|000042a0| 65 64 54 65 78 74 29 20 | 3d 20 30 20 74 68 65 6e |edText) |= 0 then|
|000042b0| 20 48 54 4d 4c 20 22 54 | 61 67 22 2c 22 26 71 75 | HTML "T|ag","&qu|
|000042c0| 6f 74 3b 22 0d 65 6c 73 | 65 20 48 54 4d 4c 20 22 |ot;".els|e HTML "|
|000042d0| 54 61 67 22 2c 22 26 71 | 75 6f 74 3b 22 2c 22 26 |Tag","&q|uot;","&|
|000042e0| 71 75 6f 74 3b 22 0d 65 | 6e 64 20 69 6e 73 65 72 |quot;".e|nd inser|
|000042f0| 74 51 75 6f 74 65 73 0d | 0d 6f 6e 20 64 75 70 6c |tQuotes.|.on dupl|
|00004300| 69 63 61 74 65 44 6f 63 | 0d 73 65 6e 64 20 74 68 |icateDoc|.send th|
|00004310| 65 20 70 61 72 61 6d 73 | 20 74 6f 20 62 67 20 62 |e params| to bg b|
|00004320| 74 6e 20 69 64 20 32 31 | 20 6f 66 20 63 64 20 31 |tn id 21| of cd 1|
|00004330| 20 6f 66 20 62 67 20 22 | 45 64 69 74 6f 72 22 0d | of bg "|Editor".|
|00004340| 65 6e 64 20 64 75 70 6c | 69 63 61 74 65 44 6f 63 |end dupl|icateDoc|
|00004350| 0d 0d 6f 6e 20 72 65 6e | 61 6d 65 44 6f 63 0d 73 |..on ren|ameDoc.s|
|00004360| 65 6e 64 20 74 68 65 20 | 70 61 72 61 6d 73 20 74 |end the |params t|
|00004370| 6f 20 62 67 20 62 74 6e | 20 69 64 20 32 31 20 6f |o bg btn| id 21 o|
|00004380| 66 20 63 64 20 31 20 6f | 66 20 62 67 20 22 45 64 |f cd 1 o|f bg "Ed|
|00004390| 69 74 6f 72 22 0d 65 6e | 64 20 72 65 6e 61 6d 65 |itor".en|d rename|
|000043a0| 44 6f 63 0d 0d 6f 6e 20 | 63 68 61 6e 67 65 50 61 |Doc..on |changePa|
|000043b0| 74 68 0d 73 65 6e 64 20 | 74 68 65 20 70 61 72 61 |th.send |the para|
|000043c0| 6d 73 20 74 6f 20 62 67 | 20 62 74 6e 20 69 64 20 |ms to bg| btn id |
|000043d0| 32 31 20 6f 66 20 63 64 | 20 31 20 6f 66 20 62 67 |21 of cd| 1 of bg|
|000043e0| 20 22 45 64 69 74 6f 72 | 22 0d 65 6e 64 20 63 68 | "Editor|".end ch|
|000043f0| 61 6e 67 65 50 61 74 68 | 0d 0d 6f 6e 20 72 65 73 |angePath|..on res|
|00004400| 74 6f 72 65 50 61 74 68 | 0d 73 65 6e 64 20 74 68 |torePath|.send th|
|00004410| 65 20 70 61 72 61 6d 73 | 20 74 6f 20 62 67 20 62 |e params| to bg b|
|00004420| 74 6e 20 69 64 20 32 31 | 20 6f 66 20 63 64 20 31 |tn id 21| of cd 1|
|00004430| 20 6f 66 20 62 67 20 22 | 45 64 69 74 6f 72 22 0d | of bg "|Editor".|
|00004440| 65 6e 64 20 72 65 73 74 | 6f 72 65 50 61 74 68 0d |end rest|orePath.|
|00004450| 0d 6f 6e 20 64 6f 4d 65 | 6e 75 20 69 0d 67 6c 6f |.on doMe|nu i.glo|
|00004460| 62 61 6c 20 75 6e 64 6f | 6e 65 0d 69 66 20 69 20 |bal undo|ne.if i |
|00004470| 3d 20 22 4e 65 77 22 20 | 6f 72 20 69 20 3d 20 22 |= "New" |or i = "|
|00004480| 4e 65 77 20 43 61 72 64 | 22 20 74 68 65 6e 0d 69 |New Card|" then.i|
|00004490| 66 20 74 68 65 20 73 68 | 6f 72 74 20 69 64 20 6f |f the sh|ort id o|
|000044a0| 66 20 74 68 69 73 20 62 | 67 20 3d 20 33 36 33 33 |f this b|g = 3633|
|000044b0| 20 74 68 65 6e 0d 73 65 | 74 49 6e 64 65 78 65 64 | then.se|tIndexed|
|000044c0| 20 46 41 4c 53 45 0d 70 | 61 73 73 20 64 6f 4d 65 | FALSE.p|ass doMe|
|000044d0| 6e 75 0d 65 6c 73 65 20 | 69 66 20 6e 75 6d 62 65 |nu.else |if numbe|
|000044e0| 72 28 74 68 69 73 20 63 | 64 29 20 3d 20 6e 75 6d |r(this c|d) = num|
|000044f0| 62 65 72 28 66 69 72 73 | 74 20 63 64 20 6f 66 20 |ber(firs|t cd of |
|00004500| 74 68 69 73 20 62 67 29 | 20 6f 72 20 6e 75 6d 62 |this bg)| or numb|
|00004510| 65 72 28 74 68 69 73 20 | 63 64 29 20 3d 20 6e 75 |er(this |cd) = nu|
|00004520| 6d 62 65 72 28 63 64 73 | 20 69 6e 20 74 68 69 73 |mber(cds| in this|
|00004530| 20 62 67 29 20 74 68 65 | 6e 0d 67 65 74 20 28 77 | bg) the|n.get (w|
|00004540| 6f 72 64 20 32 20 6f 66 | 20 74 68 65 20 73 65 6c |ord 2 of| the sel|
|00004550| 65 63 74 65 64 4c 69 6e | 65 20 6f 66 20 63 64 20 |ectedLin|e of cd |
|00004560| 66 6c 64 20 69 64 20 28 | 63 64 20 66 6c 64 20 69 |fld id (|cd fld i|
|00004570| 64 20 35 20 6f 66 20 63 | 64 20 22 69 6e 64 65 78 |d 5 of c|d "index|
|00004580| 22 29 20 6f 66 20 63 64 | 20 22 69 6e 64 65 78 22 |") of cd| "index"|
|00004590| 29 0d 69 66 20 69 74 20 | b3 20 64 6f 63 43 6f 75 |).if it |. docCou|
|000045a0| 6e 74 28 29 20 6f 72 20 | 69 74 20 3d 20 22 22 20 |nt() or |it = "" |
|000045b0| 74 68 65 6e 20 67 6f 20 | 6c 61 73 74 20 63 64 20 |then go |last cd |
|000045c0| 6f 66 20 62 67 20 22 45 | 64 69 74 6f 72 22 0d 65 |of bg "E|ditor".e|
|000045d0| 6c 73 65 20 67 6f 20 63 | 64 20 28 69 74 2b 31 29 |lse go c|d (it+1)|
|000045e0| 0d 70 61 73 73 20 64 6f | 4d 65 6e 75 0d 65 6c 73 |.pass do|Menu.els|
|000045f0| 65 0d 67 6f 20 6c 61 73 | 74 20 63 64 20 6f 66 20 |e.go las|t cd of |
|00004600| 74 68 69 73 20 62 67 0d | 70 61 73 73 20 64 6f 4d |this bg.|pass doM|
|00004610| 65 6e 75 0d 65 6e 64 20 | 69 66 0d 65 6c 73 65 20 |enu.end |if.else |
|00004620| 69 66 20 69 20 3d 20 22 | 4e 65 77 20 42 61 63 6b |if i = "|New Back|
|00004630| 67 72 6f 75 6e 64 22 20 | 74 68 65 6e 20 62 65 65 |ground" |then bee|
|00004640| 70 0d 65 6c 73 65 20 69 | 66 20 69 20 3d 20 22 55 |p.else i|f i = "U|
|00004650| 6e 64 6f 22 20 74 68 65 | 6e 0d 69 66 20 75 6e 64 |ndo" the|n.if und|
|00004660| 6f 6e 65 20 74 68 65 6e | 20 73 65 74 55 6e 64 6f |one then| setUndo|
|00004670| 20 72 65 73 74 6f 72 65 | 0d 65 6c 73 65 20 70 61 | restore|.else pa|
|00004680| 73 73 20 64 6f 4d 65 6e | 75 0d 65 6c 73 65 20 69 |ss doMen|u.else i|
|00004690| 66 20 69 20 3d 20 22 49 | 6d 70 6f 72 74 20 44 6f |f i = "I|mport Do|
|000046a0| 63 75 6d 65 6e 74 c9 22 | 20 74 68 65 6e 0d 67 6f |cument."| then.go|
|000046b0| 20 6c 61 73 74 20 63 64 | 20 6f 66 20 62 67 20 22 | last cd| of bg "|
|000046c0| 45 64 69 74 6f 72 22 0d | 73 65 6e 64 20 22 69 6d |Editor".|send "im|
|000046d0| 70 22 20 74 6f 20 74 68 | 69 73 20 63 64 0d 65 6c |p" to th|is cd.el|
|000046e0| 73 65 20 69 66 20 69 20 | 3d 20 22 45 78 70 6f 72 |se if i |= "Expor|
|000046f0| 74 20 44 6f 63 75 6d 65 | 6e 74 c9 22 20 74 68 65 |t Docume|nt." the|
|00004700| 6e 0d 69 66 20 74 68 65 | 20 73 68 6f 72 74 20 69 |n.if the| short i|
|00004710| 64 20 6f 66 20 74 68 69 | 73 20 62 67 20 3d 20 33 |d of thi|s bg = 3|
|00004720| 36 33 33 20 74 68 65 6e | 20 73 65 6e 64 20 22 65 |633 then| send "e|
|00004730| 78 70 22 26 26 74 68 65 | 20 73 68 6f 72 74 20 69 |xp"&&the| short i|
|00004740| 64 20 6f 66 20 74 68 69 | 73 20 63 64 20 74 6f 20 |d of thi|s cd to |
|00004750| 74 68 69 73 20 63 64 0d | 65 6c 73 65 20 62 65 65 |this cd.|else bee|
|00004760| 70 0d 65 6c 73 65 20 69 | 66 20 69 20 3d 20 22 45 |p.else i|f i = "E|
|00004770| 78 70 6f 72 74 20 44 6f | 63 75 6d 65 6e 74 20 41 |xport Do|cument A|
|00004780| 73 c9 22 20 74 68 65 6e | 0d 69 66 20 74 68 65 20 |s." then|.if the |
|00004790| 73 68 6f 72 74 20 69 64 | 20 6f 66 20 74 68 69 73 |short id| of this|
|000047a0| 20 62 67 20 3d 20 33 36 | 33 33 20 74 68 65 6e 20 | bg = 36|33 then |
|000047b0| 73 65 6e 64 20 22 65 78 | 70 22 26 26 28 2d 31 20 |send "ex|p"&&(-1 |
|000047c0| 2a 20 74 68 65 20 73 68 | 6f 72 74 20 69 64 20 6f |* the sh|ort id o|
|000047d0| 66 20 74 68 69 73 20 63 | 64 29 20 74 6f 20 74 68 |f this c|d) to th|
|000047e0| 69 73 20 63 64 0d 65 6c | 73 65 20 62 65 65 70 0d |is cd.el|se beep.|
|000047f0| 65 6c 73 65 20 69 66 20 | 69 20 3d 20 22 43 6f 6d |else if |i = "Com|
|00004800| 70 61 63 74 22 20 74 68 | 65 6e 0d 63 6c 6f 73 65 |pact" th|en.close|
|00004810| 50 61 6c 65 74 74 65 73 | 20 22 61 6c 6c 22 0d 64 |Palettes| "all".d|
|00004820| 6f 4d 65 6e 75 20 22 43 | 6f 6d 70 61 63 74 20 53 |oMenu "C|ompact S|
|00004830| 74 61 63 6b 22 0d 65 6c | 73 65 20 70 61 73 73 20 |tack".el|se pass |
|00004840| 64 6f 4d 65 6e 75 0d 65 | 6e 64 20 64 6f 4d 65 6e |doMenu.e|nd doMen|
|00004850| 75 0d 0d 6f 6e 20 6e 65 | 77 44 6f 63 75 6d 65 6e |u..on ne|wDocumen|
|00004860| 74 20 6d 6f 64 65 0d 70 | 75 74 20 22 55 6e 74 69 |t mode.p|ut "Unti|
|00004870| 74 6c 65 64 2d 22 26 6e | 75 6d 62 65 72 28 74 68 |tled-"&n|umber(th|
|00004880| 69 73 20 63 64 29 2d 31 | 26 22 2e 68 74 6d 6c 22 |is cd)-1|&".html"|
|00004890| 20 69 6e 74 6f 20 64 65 | 66 0d 6c 6f 63 6b 20 73 | into de|f.lock s|
|000048a0| 63 72 65 65 6e 0d 64 6f | 4d 65 6e 75 20 22 4e 65 |creen.do|Menu "Ne|
|000048b0| 77 20 43 61 72 64 22 0d | 73 65 74 49 6e 64 65 78 |w Card".|setIndex|
|000048c0| 65 64 20 46 41 4c 53 45 | 0d 73 65 6e 64 20 22 73 |ed FALSE|.send "s|
|000048d0| 65 74 54 69 74 6c 65 44 | 69 73 70 6c 61 79 20 22 |etTitleD|isplay "|
|000048e0| 26 71 75 6f 74 65 26 64 | 65 66 26 71 75 6f 74 65 |&quote&d|ef&quote|
|000048f0| 20 74 6f 20 74 68 69 73 | 20 63 64 0d 75 6e 6c 6f | to this| cd.unlo|
|00004900| 63 6b 20 73 63 72 65 65 | 6e 0d 69 66 20 6d 6f 64 |ck scree|n.if mod|
|00004910| 65 20 ad 20 22 64 6f 6e | 74 41 73 6b 22 20 74 68 |e . "don|tAsk" th|
|00004920| 65 6e 0d 72 65 6e 61 6d | 65 44 6f 63 0d 69 66 20 |en.renam|eDoc.if |
|00004930| 66 6c 64 20 22 74 69 74 | 6c 65 22 20 3d 20 22 22 |fld "tit|le" = ""|
|00004940| 20 74 68 65 6e 20 70 75 | 74 20 64 65 66 20 69 6e | then pu|t def in|
|00004950| 74 6f 20 66 6c 64 20 22 | 74 69 74 6c 65 22 0d 70 |to fld "|title".p|
|00004960| 75 74 20 22 6e 6f 74 20 | 65 78 70 6f 72 74 65 64 |ut "not |exported|
|00004970| 22 20 69 6e 74 6f 20 66 | 6c 64 20 22 6c 61 73 74 |" into f|ld "last|
|00004980| 45 78 70 6f 72 74 65 64 | 22 0d 70 75 74 20 74 68 |Exported|".put th|
|00004990| 65 20 74 69 63 6b 73 20 | 69 6e 74 6f 20 66 6c 64 |e ticks |into fld|
|000049a0| 20 22 64 61 74 65 22 0d | 65 6e 64 20 69 66 0d 73 | "date".|end if.s|
|000049b0| 65 74 49 6e 66 6f 54 65 | 78 74 0d 65 6e 64 20 6e |etInfoTe|xt.end n|
|000049c0| 65 77 44 6f 63 75 6d 65 | 6e 74 0d 0d 6f 6e 20 69 |ewDocume|nt..on i|
|000049d0| 64 6c 65 0d 69 66 20 74 | 68 65 72 65 20 69 73 20 |dle.if t|here is |
|000049e0| 61 20 77 69 6e 64 6f 77 | 20 22 70 72 6f 67 72 65 |a window| "progre|
|000049f0| 73 73 22 20 74 68 65 6e | 20 63 6c 6f 73 65 20 77 |ss" then| close w|
|00004a00| 69 6e 64 6f 77 20 22 70 | 72 6f 67 72 65 73 73 22 |indow "p|rogress"|
|00004a10| 0d 70 61 73 73 20 69 64 | 6c 65 0d 65 6e 64 20 69 |.pass id|le.end i|
|00004a20| 64 6c 65 0d 0d 6f 6e 20 | 73 68 6f 77 41 62 6f 75 |dle..on |showAbou|
|00004a30| 74 20 74 68 65 54 69 6d | 65 0d 69 66 20 74 68 65 |t theTim|e.if the|
|00004a40| 54 69 6d 65 20 3d 20 22 | 22 20 74 68 65 6e 20 70 |Time = "|" then p|
|00004a50| 75 74 20 39 39 39 20 69 | 6e 74 6f 20 74 68 65 54 |ut 999 i|nto theT|
|00004a60| 69 6d 65 0d 69 66 20 74 | 68 65 20 6f 70 74 69 6f |ime.if t|he optio|
|00004a70| 6e 4b 65 79 20 69 73 20 | 75 70 20 61 6e 64 20 28 |nKey is |up and (|
|00004a80| 69 74 65 6d 20 32 20 6f | 66 20 6c 69 6e 65 20 31 |item 2 o|f line 1|
|00004a90| 20 6f 66 20 67 65 74 4d | 6f 64 65 28 29 20 b3 20 | of getM|ode() . |
|00004aa0| 38 29 20 74 68 65 6e 20 | 73 68 6f 77 57 69 6e 64 |8) then |showWind|
|00004ab0| 20 22 41 62 6f 75 74 42 | 6f 78 22 2c 74 68 65 54 | "AboutB|ox",theT|
|00004ac0| 69 6d 65 0d 65 6c 73 65 | 20 73 68 6f 77 57 69 6e |ime.else| showWin|
|00004ad0| 64 20 22 41 62 6f 75 74 | 42 6f 78 42 57 22 2c 74 |d "About|BoxBW",t|
|00004ae0| 68 65 54 69 6d 65 0d 65 | 6e 64 20 73 68 6f 77 41 |heTime.e|nd showA|
|00004af0| 62 6f 75 74 0d 0d 6f 6e | 20 73 68 6f 77 57 69 6e |bout..on| showWin|
|00004b00| 64 20 77 69 6e 64 2c 74 | 69 6d 65 0d 67 65 74 20 |d wind,t|ime.get |
|00004b10| 74 68 65 20 74 69 63 6b | 73 0d 70 69 63 74 75 72 |the tick|s.pictur|
|00004b20| 65 20 77 69 6e 64 2c 72 | 65 73 6f 75 72 63 65 2c |e wind,r|esource,|
|00004b30| 73 68 61 64 6f 77 2c 66 | 61 6c 73 65 2c 2c 74 72 |shadow,f|alse,,tr|
|00004b40| 75 65 0d 69 66 20 74 68 | 65 20 72 65 73 75 6c 74 |ue.if th|e result|
|00004b50| 20 ad 20 22 22 20 74 68 | 65 6e 20 61 6e 73 77 65 | . "" th|en answe|
|00004b60| 72 20 22 45 52 52 4f 52 | 22 26 72 65 74 75 72 6e |r "ERROR|"&return|
|00004b70| 26 74 68 65 20 72 65 73 | 75 6c 74 26 72 65 74 75 |&the res|ult&retu|
|00004b80| 72 6e 26 72 65 61 64 54 | 45 58 54 28 22 54 45 58 |rn&readT|EXT("TEX|
|00004b90| 54 22 2c 34 37 30 34 29 | 0d 65 6c 73 65 0d 73 68 |T",4704)|.else.sh|
|00004ba0| 6f 77 20 77 69 6e 64 6f | 77 20 77 69 6e 64 0d 77 |ow windo|w wind.w|
|00004bb0| 61 69 74 20 75 6e 74 69 | 6c 20 74 68 65 20 6d 6f |ait unti|l the mo|
|00004bc0| 75 73 65 43 6c 69 63 6b | 20 6f 72 20 74 68 65 20 |useClick| or the |
|00004bd0| 74 69 63 6b 73 20 2d 20 | 69 74 20 3e 20 28 74 69 |ticks - |it > (ti|
|00004be0| 6d 65 20 2a 20 36 30 29 | 0d 65 6e 64 20 69 66 0d |me * 60)|.end if.|
|00004bf0| 76 69 73 75 61 6c 20 7a | 6f 6f 6d 20 63 6c 6f 73 |visual z|oom clos|
|00004c00| 65 0d 69 66 20 74 68 65 | 72 65 20 69 73 20 61 20 |e.if the|re is a |
|00004c10| 77 69 6e 64 6f 77 20 77 | 69 6e 64 20 74 68 65 6e |window w|ind then|
|00004c20| 20 63 6c 6f 73 65 20 77 | 69 6e 64 6f 77 20 77 69 | close w|indow wi|
|00004c30| 6e 64 0d 65 6e 64 20 73 | 68 6f 77 57 69 6e 64 0d |nd.end s|howWind.|
|00004c40| 0d 6f 6e 20 6d 6f 75 73 | 65 44 6f 77 6e 49 6e 50 |.on mous|eDownInP|
|00004c50| 69 63 74 75 72 65 20 77 | 69 6e 64 0d 69 66 20 77 |icture w|ind.if w|
|00004c60| 69 6e 64 20 3d 20 22 45 | 6e 74 69 74 69 65 73 22 |ind = "E|ntities"|
|00004c70| 20 74 68 65 6e 20 73 65 | 6c 65 63 74 45 6e 74 69 | then se|lectEnti|
|00004c80| 74 79 0d 65 6c 73 65 20 | 63 6c 6f 73 65 20 77 69 |ty.else |close wi|
|00004c90| 6e 64 6f 77 20 77 69 6e | 64 0d 65 6e 64 20 6d 6f |ndow win|d.end mo|
|00004ca0| 75 73 65 44 6f 77 6e 49 | 6e 50 69 63 74 75 72 65 |useDownI|nPicture|
|00004cb0| 0d 0d 6f 6e 20 63 6f 6d | 70 61 63 74 53 74 61 63 |..on com|pactStac|
|00004cc0| 6b 20 6e 6f 77 0d 67 65 | 74 20 74 68 65 20 73 65 |k now.ge|t the se|
|00004cd0| 6c 65 63 74 65 64 54 65 | 78 74 20 6f 66 20 63 64 |lectedTe|xt of cd|
|00004ce0| 20 62 74 6e 20 69 64 20 | 33 30 20 6f 66 20 63 64 | btn id |30 of cd|
|00004cf0| 20 22 70 72 65 66 73 22 | 0d 69 66 20 69 74 20 3d | "prefs"|.if it =|
|00004d00| 20 22 41 6c 77 61 79 73 | 22 20 74 68 65 6e 20 67 | "Always|" then g|
|00004d10| 65 74 20 22 3e 30 25 22 | 0d 65 6c 73 65 0d 64 65 |et ">0%"|.else.de|
|00004d20| 6c 65 74 65 20 66 69 72 | 73 74 20 63 68 61 72 20 |lete fir|st char |
|00004d30| 6f 66 20 69 74 0d 64 65 | 6c 65 74 65 20 6c 61 73 |of it.de|lete las|
|00004d40| 74 20 63 68 61 72 20 6f | 66 20 69 74 0d 70 75 74 |t char o|f it.put|
|00004d50| 20 69 74 2f 31 30 30 20 | 69 6e 74 6f 20 74 68 72 | it/100 |into thr|
|00004d60| 65 73 68 6f 6c 64 0d 65 | 6e 64 20 69 66 0d 69 66 |eshold.e|nd if.if|
|00004d70| 20 28 74 68 65 20 66 72 | 65 65 53 69 7a 65 20 6f | (the fr|eeSize o|
|00004d80| 66 20 74 68 69 73 20 73 | 74 61 63 6b 2f 74 68 65 |f this s|tack/the|
|00004d90| 20 73 69 7a 65 20 6f 66 | 20 74 68 69 73 20 73 74 | size of| this st|
|00004da0| 61 63 6b 20 3e 20 74 68 | 72 65 73 68 6f 6c 64 29 |ack > th|reshold)|
|00004db0| 20 6f 72 20 6e 6f 77 20 | 3d 20 54 52 55 45 0d 74 | or now |= TRUE.t|
|00004dc0| 68 65 6e 20 64 6f 4d 65 | 6e 75 20 22 43 6f 6d 70 |hen doMe|nu "Comp|
|00004dd0| 61 63 74 20 53 74 61 63 | 6b 22 0d 65 6e 64 20 63 |act Stac|k".end c|
|00004de0| 6f 6d 70 61 63 74 53 74 | 61 63 6b 0d 0d 6f 6e 20 |ompactSt|ack..on |
|00004df0| 70 72 69 6e 74 54 65 78 | 74 0d 67 65 74 20 28 74 |printTex|t.get (t|
|00004e00| 68 65 20 73 65 6c 65 63 | 74 65 64 54 65 78 74 20 |he selec|tedText |
|00004e10| 6f 66 20 63 64 20 62 74 | 6e 20 69 64 20 38 37 20 |of cd bt|n id 87 |
|00004e20| 6f 66 20 63 64 20 22 50 | 72 65 66 73 22 29 0d 69 |of cd "P|refs").i|
|00004e30| 66 20 74 68 65 20 73 68 | 6f 72 74 20 69 64 20 6f |f the sh|ort id o|
|00004e40| 66 20 74 68 69 73 20 63 | 64 20 3d 20 32 38 37 38 |f this c|d = 2878|
|00004e50| 20 74 68 65 6e 0d 67 65 | 74 20 69 74 26 22 20 49 | then.ge|t it&" I|
|00004e60| 6e 64 65 78 22 0d 6f 70 | 65 6e 20 72 65 70 6f 72 |ndex".op|en repor|
|00004e70| 74 20 70 72 69 6e 74 69 | 6e 67 20 77 69 74 68 20 |t printi|ng with |
|00004e80| 74 65 6d 70 6c 61 74 65 | 20 69 74 0d 70 72 69 6e |template| it.prin|
|00004e90| 74 20 74 68 69 73 20 63 | 64 0d 63 6c 6f 73 65 20 |t this c|d.close |
|00004ea0| 70 72 69 6e 74 69 6e 67 | 0d 65 6c 73 65 20 69 66 |printing|.else if|
|00004eb0| 20 74 68 65 20 73 68 6f | 72 74 20 69 64 20 6f 66 | the sho|rt id of|
|00004ec0| 20 74 68 69 73 20 62 67 | 20 3d 20 33 36 33 33 20 | this bg| = 3633 |
|00004ed0| 74 68 65 6e 0d 6f 70 65 | 6e 20 72 65 70 6f 72 74 |then.ope|n report|
|00004ee0| 20 70 72 69 6e 74 69 6e | 67 20 77 69 74 68 20 74 | printin|g with t|
|00004ef0| 65 6d 70 6c 61 74 65 20 | 69 74 0d 70 72 69 6e 74 |emplate |it.print|
|00004f00| 20 74 68 69 73 20 63 64 | 0d 63 6c 6f 73 65 20 70 | this cd|.close p|
|00004f10| 72 69 6e 74 69 6e 67 0d | 65 6c 73 65 20 62 65 65 |rinting.|else bee|
|00004f20| 70 0d 65 6e 64 20 70 72 | 69 6e 74 54 65 78 74 0d |p.end pr|intText.|
|00004f30| 0d 6f 6e 20 48 54 4d 4c | 48 65 6c 70 20 69 0d 73 |.on HTML|Help i.s|
|00004f40| 65 6e 64 20 74 68 65 20 | 70 61 72 61 6d 73 20 74 |end the |params t|
|00004f50| 6f 20 62 67 20 62 74 6e | 20 69 64 20 34 37 20 6f |o bg btn| id 47 o|
|00004f60| 66 20 63 64 20 31 20 6f | 66 20 62 67 20 22 45 64 |f cd 1 o|f bg "Ed|
|00004f70| 69 74 6f 72 22 0d 65 6e | 64 20 48 54 4d 4c 48 65 |itor".en|d HTMLHe|
|00004f80| 6c 70 0d 0d 6f 6e 20 63 | 6c 69 63 6b 49 6e 54 65 |lp..on c|lickInTe|
|00004f90| 78 74 20 74 68 65 57 6f | 72 64 2c 57 4e 61 6d 65 |xt theWo|rd,WName|
|00004fa0| 2c 77 2c 73 31 2c 73 32 | 2c 66 2c 73 32 2c 74 68 |,w,s1,s2|,f,s2,th|
|00004fb0| 65 53 74 79 6c 65 0d 69 | 66 20 57 4e 61 6d 65 20 |eStyle.i|f WName |
|00004fc0| 3d 20 22 49 6e 66 6f 22 | 20 74 68 65 6e 20 73 65 |= "Info"| then se|
|00004fd0| 74 49 6e 66 6f 54 65 78 | 74 0d 65 6c 73 65 20 69 |tInfoTex|t.else i|
|00004fe0| 66 20 74 68 65 53 74 79 | 6c 65 20 63 6f 6e 74 61 |f theSty|le conta|
|00004ff0| 69 6e 73 20 22 67 72 6f | 75 70 22 20 61 6e 64 20 |ins "gro|up" and |
|00005000| 74 68 65 53 74 79 6c 65 | 20 63 6f 6e 74 61 69 6e |theStyle| contain|
|00005010| 73 20 22 75 6e 64 65 72 | 6c 69 6e 65 22 20 74 68 |s "under|line" th|
|00005020| 65 6e 20 48 54 4d 4c 48 | 65 6c 70 20 74 68 65 57 |en HTMLH|elp theW|
|00005030| 6f 72 64 0d 65 6c 73 65 | 20 69 66 20 57 4e 61 6d |ord.else| if WNam|
|00005040| 65 20 3d 20 22 43 6c 69 | 70 22 20 61 6e 64 20 74 |e = "Cli|p" and t|
|00005050| 68 65 53 74 79 6c 65 20 | 63 6f 6e 74 61 69 6e 73 |heStyle |contains|
|00005060| 20 22 67 72 6f 75 70 22 | 20 61 6e 64 20 22 66 69 | "group"| and "fi|
|00005070| 65 6c 64 22 20 69 73 20 | 69 6e 20 74 68 65 20 73 |eld" is |in the s|
|00005080| 65 6c 65 63 74 65 64 43 | 68 75 6e 6b 20 74 68 65 |electedC|hunk the|
|00005090| 6e 0d 73 65 74 55 6e 64 | 6f 0d 67 65 74 20 67 72 |n.setUnd|o.get gr|
|000050a0| 65 70 43 6f 6e 76 65 72 | 74 28 74 68 65 57 6f 72 |epConver|t(theWor|
|000050b0| 64 29 0d 69 66 20 6e 6f | 74 20 6e 6f 53 65 6c 65 |d).if no|t noSele|
|000050c0| 63 74 69 6f 6e 28 29 20 | 61 6e 64 20 74 68 65 20 |ction() |and the |
|000050d0| 6e 75 6d 62 65 72 20 6f | 66 20 69 74 65 6d 73 20 |number o|f items |
|000050e0| 69 6e 20 69 74 20 3d 20 | 33 20 74 68 65 6e 0d 70 |in it = |3 then.p|
|000050f0| 75 74 20 74 68 65 20 73 | 65 6c 65 63 74 65 64 43 |ut the s|electedC|
|00005100| 68 75 6e 6b 20 69 6e 74 | 6f 20 74 68 65 43 68 75 |hunk int|o theChu|
|00005110| 6e 6b 0d 70 75 74 20 74 | 68 65 20 73 65 6c 65 63 |nk.put t|he selec|
|00005120| 74 69 6f 6e 20 69 6e 74 | 6f 20 74 68 65 54 65 78 |tion int|o theTex|
|00005130| 74 0d 48 54 4d 4c 20 22 | 54 61 67 22 2c 69 74 65 |t.HTML "|Tag",ite|
|00005140| 6d 20 32 20 6f 66 20 69 | 74 2c 69 74 65 6d 20 33 |m 2 of i|t,item 3|
|00005150| 20 6f 66 20 69 74 0d 65 | 6c 73 65 20 74 79 70 65 | of it.e|lse type|
|00005160| 20 72 65 70 28 69 74 2c | 22 27 22 2c 71 75 6f 74 | rep(it,|"'",quot|
|00005170| 65 29 0d 65 6e 64 20 69 | 66 0d 65 6e 64 20 63 6c |e).end i|f.end cl|
|00005180| 69 63 6b 49 6e 54 65 78 | 74 0d 0d 6f 6e 20 63 6f |ickInTex|t..on co|
|00005190| 70 79 43 6c 69 70 0d 73 | 65 6e 64 20 74 68 65 20 |pyClip.s|end the |
|000051a0| 70 61 72 61 6d 73 20 74 | 6f 20 62 67 20 62 74 6e |params t|o bg btn|
|000051b0| 20 69 64 20 33 39 20 6f | 66 20 63 64 20 31 20 6f | id 39 o|f cd 1 o|
|000051c0| 66 20 62 67 20 22 45 64 | 69 74 6f 72 22 0d 65 6e |f bg "Ed|itor".en|
|000051d0| 64 20 63 6f 70 79 43 6c | 69 70 0d 0d 6f 6e 20 63 |d copyCl|ip..on c|
|000051e0| 75 74 43 6c 69 70 0d 73 | 65 6e 64 20 74 68 65 20 |utClip.s|end the |
|000051f0| 70 61 72 61 6d 73 20 74 | 6f 20 62 67 20 62 74 6e |params t|o bg btn|
|00005200| 20 69 64 20 33 39 20 6f | 66 20 63 64 20 31 20 6f | id 39 o|f cd 1 o|
|00005210| 66 20 62 67 20 22 45 64 | 69 74 6f 72 22 0d 65 6e |f bg "Ed|itor".en|
|00005220| 64 20 63 75 74 43 6c 69 | 70 0d 0d 6f 6e 20 67 6f |d cutCli|p..on go|
|00005230| 43 6c 69 70 0d 67 6f 20 | 63 64 20 22 70 72 65 66 |Clip.go |cd "pref|
|00005240| 73 22 0d 73 65 6e 64 20 | 22 73 65 74 50 72 65 66 |s".send |"setPref|
|00005250| 73 20 37 22 20 74 6f 20 | 63 64 20 69 64 20 39 39 |s 7" to |cd id 99|
|00005260| 39 33 0d 73 65 6e 64 20 | 22 73 65 74 4c 69 62 72 |93.send |"setLibr|
|00005270| 61 72 79 20 32 22 20 74 | 6f 20 63 64 20 69 64 20 |ary 2" t|o cd id |
|00005280| 39 39 39 33 0d 65 6e 64 | 20 67 6f 43 6c 69 70 0d |9993.end| goClip.|
|00005290| 0d 6f 6e 20 73 68 6f 77 | 43 6c 69 70 0d 73 65 6e |.on show|Clip.sen|
|000052a0| 64 20 74 68 65 20 70 61 | 72 61 6d 73 20 74 6f 20 |d the pa|rams to |
|000052b0| 62 67 20 62 74 6e 20 69 | 64 20 33 39 20 6f 66 20 |bg btn i|d 39 of |
|000052c0| 63 64 20 31 20 6f 66 20 | 62 67 20 22 45 64 69 74 |cd 1 of |bg "Edit|
|000052d0| 6f 72 22 0d 65 6e 64 20 | 73 68 6f 77 43 6c 69 70 |or".end |showClip|
|000052e0| 0d 0d 6f 6e 20 63 6c 6f | 73 65 54 65 78 74 6f 69 |..on clo|seTextoi|
|000052f0| 64 20 57 4e 61 6d 65 0d | 69 66 20 74 68 65 72 65 |d WName.|if there|
|00005300| 20 69 73 20 61 20 77 69 | 6e 64 6f 77 20 22 43 6c | is a wi|ndow "Cl|
|00005310| 69 70 22 20 74 68 65 6e | 20 70 75 74 20 74 68 65 |ip" then| put the|
|00005320| 20 72 65 63 74 20 6f 66 | 20 77 69 6e 64 6f 77 20 | rect of| window |
|00005330| 22 43 6c 69 70 22 20 69 | 6e 74 6f 20 63 64 20 66 |"Clip" i|nto cd f|
|00005340| 6c 64 20 22 63 6c 69 70 | 4c 6f 63 22 20 6f 66 20 |ld "clip|Loc" of |
|00005350| 63 64 20 22 70 72 65 66 | 73 22 0d 69 66 20 74 68 |cd "pref|s".if th|
|00005360| 65 72 65 20 69 73 20 61 | 20 77 69 6e 64 6f 77 20 |ere is a| window |
|00005370| 22 49 6e 66 6f 22 20 74 | 68 65 6e 20 70 75 74 20 |"Info" t|hen put |
|00005380| 74 68 65 20 72 65 63 74 | 20 6f 66 20 77 69 6e 64 |the rect| of wind|
|00005390| 6f 77 20 22 49 6e 66 6f | 22 20 69 6e 74 6f 20 63 |ow "Info|" into c|
|000053a0| 64 20 66 6c 64 20 22 69 | 6e 66 6f 52 65 63 74 22 |d fld "i|nfoRect"|
|000053b0| 20 6f 66 20 63 64 20 22 | 70 72 65 66 73 22 0d 65 | of cd "|prefs".e|
|000053c0| 6e 64 20 63 6c 6f 73 65 | 54 65 78 74 6f 69 64 0d |nd close|Textoid.|
|000053d0| 0d 6f 6e 20 73 65 74 49 | 6e 64 65 78 65 64 20 6d |.on setI|ndexed m|
|000053e0| 6f 64 65 0d 67 6c 6f 62 | 61 6c 20 69 6e 64 65 78 |ode.glob|al index|
|000053f0| 65 64 0d 69 66 20 6d 6f | 64 65 20 74 68 65 6e 20 |ed.if mo|de then |
|00005400| 67 65 74 20 34 32 33 30 | 20 65 6c 73 65 20 67 65 |get 4230| else ge|
|00005410| 74 20 34 32 31 32 0d 73 | 65 74 20 74 68 65 20 69 |t 4212.s|et the i|
|00005420| 63 6f 6e 20 6f 66 20 63 | 64 20 62 74 6e 20 69 64 |con of c|d btn id|
|00005430| 20 32 31 20 6f 66 20 63 | 64 20 22 69 6e 64 65 78 | 21 of c|d "index|
|00005440| 22 20 74 6f 20 69 74 0d | 70 75 74 20 6d 6f 64 65 |" to it.|put mode|
|00005450| 20 69 6e 74 6f 20 69 6e | 64 65 78 65 64 0d 65 6e | into in|dexed.en|
|00005460| 64 20 73 65 74 49 6e 64 | 65 78 65 64 0d 0d 6f 6e |d setInd|exed..on|
|00005470| 20 73 65 6c 65 63 74 46 | 72 6f 6d 49 6e 64 65 78 | selectF|romIndex|
|00005480| 0d 73 65 6e 64 20 74 68 | 65 20 70 61 72 61 6d 73 |.send th|e params|
|00005490| 20 74 6f 20 62 67 20 62 | 74 6e 20 69 64 20 32 31 | to bg b|tn id 21|
|000054a0| 20 6f 66 20 63 64 20 31 | 20 6f 66 20 62 67 20 22 | of cd 1| of bg "|
|000054b0| 45 64 69 74 6f 72 22 0d | 65 6e 64 20 73 65 6c 65 |Editor".|end sele|
|000054c0| 63 74 46 72 6f 6d 49 6e | 64 65 78 0d 0d 6f 6e 20 |ctFromIn|dex..on |
|000054d0| 69 6e 64 65 78 53 74 61 | 63 6b 0d 73 65 6e 64 20 |indexSta|ck.send |
|000054e0| 74 68 65 20 70 61 72 61 | 6d 73 20 74 6f 20 62 67 |the para|ms to bg|
|000054f0| 20 62 74 6e 20 69 64 20 | 32 31 20 6f 66 20 63 64 | btn id |21 of cd|
|00005500| 20 31 20 6f 66 20 62 67 | 20 22 45 64 69 74 6f 72 | 1 of bg| "Editor|
|00005510| 22 0d 65 6e 64 20 69 6e | 64 65 78 53 74 61 63 6b |".end in|dexStack|
|00005520| 0d 0d 2d 2d 20 6f 70 65 | 6e 69 6e 67 20 68 61 6e |..-- ope|ning han|
|00005530| 64 6c 65 72 73 0d 0d 6f | 6e 20 73 74 61 72 74 75 |dlers..o|n startu|
|00005540| 70 0d 73 65 6e 64 20 22 | 69 6e 69 74 69 61 6c 69 |p.send "|initiali|
|00005550| 7a 65 22 20 74 6f 20 63 | 64 20 69 64 20 32 38 37 |ze" to c|d id 287|
|00005560| 38 0d 70 61 73 73 20 73 | 74 61 72 74 75 70 0d 65 |8.pass s|tartup.e|
|00005570| 6e 64 20 73 74 61 72 74 | 75 70 0d 0d 6f 6e 20 73 |nd start|up..on s|
|00005580| 69 7a 65 43 61 72 64 57 | 69 6e 64 6f 77 0d 67 65 |izeCardW|indow.ge|
|00005590| 74 20 63 64 20 66 6c 64 | 20 69 64 20 31 39 20 6f |t cd fld| id 19 o|
|000055a0| 66 20 63 64 20 22 70 72 | 65 66 73 22 0d 69 66 20 |f cd "pr|efs".if |
|000055b0| 28 74 68 65 20 68 69 6c | 69 74 65 20 6f 66 20 63 |(the hil|ite of c|
|000055c0| 64 20 62 74 6e 20 69 64 | 20 34 37 20 6f 66 20 63 |d btn id| 47 of c|
|000055d0| 64 20 22 70 72 65 66 73 | 22 29 20 61 6e 64 20 74 |d "prefs|") and t|
|000055e0| 68 65 20 6f 70 74 69 6f | 6e 4b 65 79 20 69 73 20 |he optio|nKey is |
|000055f0| 75 70 20 61 6e 64 20 28 | 6c 69 6e 65 20 32 20 6f |up and (|line 2 o|
|00005600| 66 20 69 74 20 3d 20 74 | 68 65 20 73 63 72 65 65 |f it = t|he scree|
|00005610| 6e 52 65 63 74 29 20 74 | 68 65 6e 0d 73 65 74 20 |nRect) t|hen.set |
|00005620| 74 68 65 20 72 65 63 74 | 20 6f 66 20 74 68 69 73 |the rect| of this|
|00005630| 20 63 64 20 74 6f 20 6c | 69 6e 65 20 31 20 6f 66 | cd to l|ine 1 of|
|00005640| 20 69 74 0d 65 6c 73 65 | 20 73 65 74 20 74 68 65 | it.else| set the|
|00005650| 20 72 65 63 74 20 6f 66 | 20 74 68 69 73 20 63 64 | rect of| this cd|
|00005660| 20 74 6f 20 22 30 2c 34 | 30 2c 35 31 32 2c 33 38 | to "0,4|0,512,38|
|00005670| 32 22 0d 65 6e 64 20 73 | 69 7a 65 43 61 72 64 57 |2".end s|izeCardW|
|00005680| 69 6e 64 6f 77 0d 0d 6f | 6e 20 63 6c 6f 73 65 53 |indow..o|n closeS|
|00005690| 74 61 63 6b 0d 67 6c 6f | 62 61 6c 20 74 6f 6f 6c |tack.glo|bal tool|
|000056a0| 50 61 6c 65 74 74 65 0d | 73 65 74 20 63 75 72 73 |Palette.|set curs|
|000056b0| 6f 72 20 74 6f 20 62 79 | 65 0d 70 75 74 20 74 68 |or to by|e.put th|
|000056c0| 65 20 72 65 63 74 20 6f | 66 20 63 64 20 77 69 6e |e rect o|f cd win|
|000056d0| 64 6f 77 26 72 65 74 75 | 72 6e 26 74 68 65 20 73 |dow&retu|rn&the s|
|000056e0| 63 72 65 65 6e 52 65 63 | 74 20 69 6e 74 6f 20 63 |creenRec|t into c|
|000056f0| 64 20 66 6c 64 20 69 64 | 20 31 39 20 6f 66 20 63 |d fld id| 19 of c|
|00005700| 64 20 22 70 72 65 66 73 | 22 0d 69 66 20 74 68 65 |d "prefs|".if the|
|00005710| 20 68 69 6c 69 74 65 20 | 6f 66 20 63 64 20 62 74 | hilite |of cd bt|
|00005720| 6e 20 69 64 20 32 39 20 | 6f 66 20 63 64 20 22 70 |n id 29 |of cd "p|
|00005730| 72 65 66 73 22 20 74 68 | 65 6e 20 63 6f 6d 70 61 |refs" th|en compa|
|00005740| 63 74 53 74 61 63 6b 0d | 69 66 20 74 68 65 72 65 |ctStack.|if there|
|00005750| 20 69 73 20 61 20 77 69 | 6e 64 6f 77 20 22 48 54 | is a wi|ndow "HT|
|00005760| 4d 4c 2e 65 64 69 74 20 | 48 65 6c 70 22 20 74 68 |ML.edit |Help" th|
|00005770| 65 6e 20 63 6c 6f 73 65 | 20 77 69 6e 64 6f 77 20 |en close| window |
|00005780| 22 48 54 4d 4c 2e 65 64 | 69 74 20 48 65 6c 70 22 |"HTML.ed|it Help"|
|00005790| 0d 69 66 20 74 68 65 72 | 65 20 69 73 20 61 20 77 |.if ther|e is a w|
|000057a0| 69 6e 64 6f 77 20 74 6f | 6f 6c 50 61 6c 65 74 74 |indow to|olPalett|
|000057b0| 65 20 74 68 65 6e 20 63 | 6c 6f 73 65 20 77 69 6e |e then c|lose win|
|000057c0| 64 6f 77 20 74 6f 6f 6c | 50 61 6c 65 74 74 65 0d |dow tool|Palette.|
|000057d0| 69 66 20 74 68 65 72 65 | 20 69 73 20 61 20 77 69 |if there| is a wi|
|000057e0| 6e 64 6f 77 20 22 45 6e | 74 69 74 69 65 73 22 20 |ndow "En|tities" |
|000057f0| 74 68 65 6e 20 63 6c 6f | 73 65 20 77 69 6e 64 6f |then clo|se windo|
|00005800| 77 20 22 45 6e 74 69 74 | 69 65 73 22 0d 72 65 73 |w "Entit|ies".res|
|00005810| 65 74 20 6d 65 6e 75 62 | 61 72 0d 73 65 6e 64 20 |et menub|ar.send |
|00005820| 22 73 65 74 45 6c 61 70 | 73 65 64 22 20 74 6f 20 |"setElap|sed" to |
|00005830| 63 64 20 69 64 20 32 38 | 37 38 0d 70 61 73 73 20 |cd id 28|78.pass |
|00005840| 63 6c 6f 73 65 53 74 61 | 63 6b 0d 65 6e 64 20 63 |closeSta|ck.end c|
|00005850| 6c 6f 73 65 53 74 61 63 | 6b 0d 0d 6f 6e 20 73 75 |loseStac|k..on su|
|00005860| 73 70 65 6e 64 53 74 61 | 63 6b 0d 68 69 64 65 50 |spendSta|ck.hideP|
|00005870| 61 6c 65 74 74 65 73 0d | 72 65 73 65 74 20 6d 65 |alettes.|reset me|
|00005880| 6e 75 62 61 72 0d 70 61 | 73 73 20 73 75 73 70 65 |nubar.pa|ss suspe|
|00005890| 6e 64 53 74 61 63 6b 0d | 65 6e 64 20 73 75 73 70 |ndStack.|end susp|
|000058a0| 65 6e 64 53 74 61 63 6b | 0d 0d 6f 6e 20 72 65 73 |endStack|..on res|
|000058b0| 75 6d 65 53 74 61 63 6b | 0d 73 65 65 6b 50 61 6c |umeStack|.seekPal|
|000058c0| 65 74 74 65 73 0d 73 65 | 6e 64 20 22 73 65 74 4d |ettes.se|nd "setM|
|000058d0| 65 6e 75 73 22 20 74 6f | 20 63 64 20 69 64 20 32 |enus" to| cd id 2|
|000058e0| 38 37 38 0d 70 61 73 73 | 20 72 65 73 75 6d 65 53 |878.pass| resumeS|
|000058f0| 74 61 63 6b 0d 65 6e 64 | 20 72 65 73 75 6d 65 53 |tack.end| resumeS|
|00005900| 74 61 63 6b 0d 0d 2d 2d | 20 48 54 4d 4c 20 43 6f |tack..--| HTML Co|
|00005910| 64 69 6e 67 0d 0d 6f 6e | 20 48 54 4d 4c 41 64 64 |ding..on| HTMLAdd|
|00005920| 72 65 73 73 0d 73 65 6e | 64 20 74 68 65 20 70 61 |ress.sen|d the pa|
|00005930| 72 61 6d 73 20 74 6f 20 | 62 67 20 62 74 6e 20 69 |rams to |bg btn i|
|00005940| 64 20 33 31 20 6f 66 20 | 63 64 20 31 20 6f 66 20 |d 31 of |cd 1 of |
|00005950| 62 67 20 22 45 64 69 74 | 6f 72 22 0d 65 6e 64 20 |bg "Edit|or".end |
|00005960| 48 54 4d 4c 41 64 64 72 | 65 73 73 0d 0d 6f 6e 20 |HTMLAddr|ess..on |
|00005970| 75 6e 48 54 4d 4c 0d 73 | 65 6e 64 20 74 68 65 20 |unHTML.s|end the |
|00005980| 70 61 72 61 6d 73 20 74 | 6f 20 62 67 20 62 74 6e |params t|o bg btn|
|00005990| 20 69 64 20 33 31 20 6f | 66 20 63 64 20 31 20 6f | id 31 o|f cd 1 o|
|000059a0| 66 20 62 67 20 22 45 64 | 69 74 6f 72 22 0d 65 6e |f bg "Ed|itor".en|
|000059b0| 64 20 75 6e 48 54 4d 4c | 0d 0d 6f 6e 20 48 54 4d |d unHTML|..on HTM|
|000059c0| 4c 20 69 2c 6a 2c 6b 0d | 67 6c 6f 62 61 6c 20 68 |L i,j,k.|global h|
|000059d0| 4e 75 6d 2c 73 74 79 6c | 65 54 61 67 73 0d 70 75 |Num,styl|eTags.pu|
|000059e0| 74 20 74 68 65 20 70 61 | 72 61 6d 20 6f 66 20 28 |t the pa|ram of (|
|000059f0| 74 68 65 20 70 61 72 61 | 6d 43 6f 75 6e 74 29 20 |the para|mCount) |
|00005a00| 69 6e 74 6f 20 6d 6f 64 | 65 0d 49 46 20 6e 6f 74 |into mod|e.IF not|
|00005a10| 20 6e 6f 53 65 6c 65 63 | 74 69 6f 6e 28 29 20 74 | noSelec|tion() t|
|00005a20| 68 65 6e 0d 70 75 74 20 | 74 68 65 20 73 65 6c 65 |hen.put |the sele|
|00005a30| 63 74 65 64 43 68 75 6e | 6b 20 69 6e 74 6f 20 74 |ctedChun|k into t|
|00005a40| 68 65 43 68 75 6e 6b 0d | 69 66 20 22 66 69 65 6c |heChunk.|if "fiel|
|00005a50| 64 22 20 69 73 20 69 6e | 20 74 68 65 43 68 75 6e |d" is in| theChun|
|00005a60| 6b 20 74 68 65 6e 20 70 | 75 74 20 74 68 65 20 73 |k then p|ut the s|
|00005a70| 68 6f 72 74 20 69 64 20 | 6f 66 20 74 68 65 20 73 |hort id |of the s|
|00005a80| 65 6c 65 63 74 65 64 46 | 69 65 6c 64 20 69 6e 74 |electedF|ield int|
|00005a90| 6f 20 66 6c 64 49 44 0d | 70 75 74 20 74 68 65 20 |o fldID.|put the |
|00005aa0| 73 65 6c 65 63 74 69 6f | 6e 20 69 6e 74 6f 20 74 |selectio|n into t|
|00005ab0| 68 65 54 65 78 74 0d 70 | 75 74 20 6c 65 6e 67 74 |heText.p|ut lengt|
|00005ac0| 68 28 74 68 65 54 65 78 | 74 29 20 69 6e 74 6f 20 |h(theTex|t) into |
|00005ad0| 6c 65 6e 0d 0d 69 66 20 | 6d 6f 64 65 20 ad 20 22 |len..if |mode . "|
|00005ae0| 74 78 22 20 61 6e 64 20 | 69 20 ad 20 22 52 65 54 |tx" and |i . "ReT|
|00005af0| 61 67 22 20 74 68 65 6e | 20 73 65 6e 64 20 22 73 |ag" then| send "s|
|00005b00| 65 74 55 6e 64 6f 22 20 | 74 6f 20 74 68 69 73 20 |etUndo" |to this |
|00005b10| 63 64 0d 69 66 20 69 20 | 3d 20 22 44 65 54 61 67 |cd.if i |= "DeTag|
|00005b20| 22 20 74 68 65 6e 0d 75 | 6e 48 54 4d 4c 20 2d 2d |" then.u|nHTML --|
|00005b30| 20 72 65 6d 6f 76 65 20 | 73 75 72 72 6f 75 6e 64 | remove |surround|
|00005b40| 69 6e 67 20 74 61 67 73 | 0d 48 54 4d 4c 20 22 52 |ing tags|.HTML "R|
|00005b50| 65 54 61 67 22 2c 6a 2c | 6b 0d 65 78 69 74 32 48 |eTag",j,|k.exit2H|
|00005b60| 43 0d 65 6c 73 65 20 69 | 66 20 69 20 3d 20 22 52 |C.else i|f i = "R|
|00005b70| 65 54 61 67 22 20 74 68 | 65 6e 20 70 75 74 20 22 |eTag" th|en put "|
|00005b80| 54 61 67 22 20 69 6e 74 | 6f 20 69 0d 67 65 74 20 |Tag" int|o i.get |
|00005b90| 22 22 0d 69 66 20 69 20 | 3d 20 22 53 74 79 6c 65 |"".if i |= "Style|
|00005ba0| 54 61 67 22 20 74 68 65 | 6e 20 2d 2d 20 6b 20 69 |Tag" the|n -- k i|
|00005bb0| 73 20 69 6e 64 65 78 20 | 74 6f 20 73 74 79 6c 65 |s index |to style|
|00005bc0| 20 74 61 62 6c 65 20 69 | 74 65 6d 0d 72 65 70 65 | table i|tem.repe|
|00005bd0| 61 74 20 77 69 74 68 20 | 6e 20 3d 20 6b 20 74 6f |at with |n = k to|
|00005be0| 20 6e 75 6d 62 65 72 28 | 6c 69 6e 65 73 20 69 6e | number(|lines in|
|00005bf0| 20 73 74 79 6c 65 54 61 | 67 73 29 0d 69 66 20 6a | styleTa|gs).if j|
|00005c00| 20 3d 20 69 74 65 6d 20 | 31 20 6f 66 20 6c 69 6e | = item |1 of lin|
|00005c10| 65 20 6e 20 6f 66 20 73 | 74 79 6c 65 54 61 67 73 |e n of s|tyleTags|
|00005c20| 20 74 68 65 6e 0d 67 65 | 74 20 69 74 65 6d 20 32 | then.ge|t item 2|
|00005c30| 20 6f 66 20 6c 69 6e 65 | 20 6e 20 6f 66 20 73 74 | of line| n of st|
|00005c40| 79 6c 65 54 61 67 73 26 | 22 2c 22 26 69 74 65 6d |yleTags&|","&item|
|00005c50| 20 33 20 6f 66 20 6c 69 | 6e 65 20 6e 20 6f 66 20 | 3 of li|ne n of |
|00005c60| 73 74 79 6c 65 54 61 67 | 73 26 22 2c 22 26 c2 0d |styleTag|s&","&..|
|00005c70| 6c 65 6e 67 74 68 28 69 | 74 65 6d 20 32 20 6f 66 |length(i|tem 2 of|
|00005c80| 20 6c 69 6e 65 20 6e 20 | 6f 66 20 73 74 79 6c 65 | line n |of style|
|00005c90| 54 61 67 73 29 0d 65 78 | 69 74 20 72 65 70 65 61 |Tags).ex|it repea|
|00005ca0| 74 0d 65 6e 64 20 69 66 | 0d 65 6e 64 20 72 65 70 |t.end if|.end rep|
|00005cb0| 65 61 74 0d 65 6c 73 65 | 20 69 66 20 69 20 3d 20 |eat.else| if i = |
|00005cc0| 22 48 6f 72 69 7a 6f 6e | 74 61 6c 20 52 75 6c 65 |"Horizon|tal Rule|
|00005cd0| 22 20 74 68 65 6e 20 67 | 65 74 20 22 2c 3c 48 52 |" then g|et ",<HR|
|00005ce0| 3e 2c 30 22 0d 65 6c 73 | 65 20 69 66 20 69 20 3d |>,0".els|e if i =|
|00005cf0| 20 22 48 65 61 64 69 6e | 67 22 20 74 68 65 6e 0d | "Headin|g" then.|
|00005d00| 69 66 20 63 68 61 72 20 | 31 20 74 6f 20 32 20 6f |if char |1 to 2 o|
|00005d10| 66 20 74 68 65 54 65 78 | 74 20 3d 20 22 3c 48 22 |f theTex|t = "<H"|
|00005d20| 20 61 6e 64 20 63 68 61 | 72 20 6c 65 6e 2d 34 20 | and cha|r len-4 |
|00005d30| 74 6f 20 6c 65 6e 2d 32 | 20 6f 66 20 74 68 65 54 |to len-2| of theT|
|00005d40| 65 78 74 20 3d 20 22 3c | 2f 48 22 20 74 68 65 6e |ext = "<|/H" then|
|00005d50| 0d 70 75 74 20 68 4e 75 | 6d 20 69 6e 74 6f 20 63 |.put hNu|m into c|
|00005d60| 68 61 72 20 33 20 6f 66 | 20 74 68 65 54 65 78 74 |har 3 of| theText|
|00005d70| 0d 70 75 74 20 68 4e 75 | 6d 20 69 6e 74 6f 20 63 |.put hNu|m into c|
|00005d80| 68 61 72 20 6c 65 6e 2d | 31 20 6f 66 20 74 68 65 |har len-|1 of the|
|00005d90| 54 65 78 74 0d 67 65 74 | 20 22 2c 2c 30 22 0d 65 |Text.get| ",,0".e|
|00005da0| 6c 73 65 20 67 65 74 20 | 22 3c 48 22 26 68 4e 75 |lse get |"<H"&hNu|
|00005db0| 6d 26 22 3e 2c 3c 2f 48 | 22 26 68 4e 75 6d 26 22 |m&">,</H|"&hNum&"|
|00005dc0| 3e 2c 34 22 0d 65 6c 73 | 65 20 69 66 20 69 20 3d |>,4".els|e if i =|
|00005dd0| 20 22 43 6f 6d 6d 65 6e | 74 22 20 74 68 65 6e 20 | "Commen|t" then |
|00005de0| 67 65 74 20 22 3c 21 2d | 2d 20 2c 20 2d 2d 3e 2c |get "<!-|- , -->,|
|00005df0| 35 22 0d 65 6c 73 65 20 | 69 66 20 69 20 3d 20 22 |5".else |if i = "|
|00005e00| 43 75 73 74 6f 6d 45 6e | 74 69 74 79 22 20 74 68 |CustomEn|tity" th|
|00005e10| 65 6e 20 67 65 74 20 6a | 26 22 2c 2c 22 26 6c 65 |en get j|&",,"&le|
|00005e20| 6e 67 74 68 28 6a 29 2b | 32 0d 65 6c 73 65 20 69 |ngth(j)+|2.else i|
|00005e30| 66 20 69 20 3d 20 22 46 | 6f 6f 74 65 72 22 20 74 |f i = "F|ooter" t|
|00005e40| 68 65 6e 20 67 65 74 20 | 66 6f 6f 74 65 72 54 61 |hen get |footerTa|
|00005e50| 67 28 29 26 22 2c 2c 22 | 26 6c 65 6e 67 74 68 28 |g()&",,"|&length(|
|00005e60| 66 6f 6f 74 65 72 54 61 | 67 28 29 29 0d 65 6c 73 |footerTa|g()).els|
|00005e70| 65 20 69 66 20 69 20 3d | 20 22 54 61 67 22 20 74 |e if i =| "Tag" t|
|00005e80| 68 65 6e 20 67 65 74 20 | 6a 26 22 2c 22 26 6b 26 |hen get |j&","&k&|
|00005e90| 22 2c 22 26 6c 65 6e 67 | 74 68 28 6a 29 20 2d 2d |","&leng|th(j) --|
|00005ea0| 20 70 72 65 20 3c 6a 3e | 7c 3c 6b 3e 20 74 61 67 | pre <j>||<k> tag|
|00005eb0| 0d 65 6c 73 65 20 69 66 | 20 69 20 3d 20 22 50 72 |.else if| i = "Pr|
|00005ec0| 65 54 61 67 22 20 74 68 | 65 6e 20 67 65 74 20 22 |eTag" th|en get "|
|00005ed0| 2c 22 26 6a 26 22 2c 30 | 22 20 2d 2d 20 70 72 65 |,"&j&",0|" -- pre|
|00005ee0| 20 7c 3c 6a 3e 20 73 69 | 6e 67 6c 65 20 74 61 67 | |<j> si|ngle tag|
|00005ef0| 0d 65 6c 73 65 20 69 66 | 20 69 20 3d 20 22 50 6f |.else if| i = "Po|
|00005f00| 73 74 54 61 67 22 20 74 | 68 65 6e 20 67 65 74 20 |stTag" t|hen get |
|00005f10| 6a 26 22 2c 2c 22 26 6c | 65 6e 67 74 68 28 6a 29 |j&",,"&l|ength(j)|
|00005f20| 20 2d 2d 20 70 6f 73 74 | 20 3c 6a 3e 7c 20 73 69 | -- post| <j>| si|
|00005f30| 6e 67 6c 65 20 74 61 67 | 0d 65 6c 73 65 20 69 66 |ngle tag|.else if|
|00005f40| 20 69 20 3d 20 22 42 6c | 6f 63 6b 71 75 6f 74 65 | i = "Bl|ockquote|
|00005f50| 22 20 74 68 65 6e 20 67 | 65 74 20 22 3c 42 4c 4f |" then g|et "<BLO|
|00005f60| 43 4b 51 55 4f 54 45 3e | 2c 3c 2f 42 4c 4f 43 4b |CKQUOTE>|,</BLOCK|
|00005f70| 51 55 4f 54 45 3e 2c 31 | 32 22 0d 65 6c 73 65 20 |QUOTE>,1|2".else |
|00005f80| 69 66 20 69 20 3d 20 22 | 49 53 49 4e 44 45 58 22 |if i = "|ISINDEX"|
|00005f90| 20 74 68 65 6e 20 67 65 | 74 20 22 2c 3c 49 53 49 | then ge|t ",<ISI|
|00005fa0| 4e 44 45 58 3e 2c 30 22 | 0d 65 6c 73 65 20 69 66 |NDEX>,0"|.else if|
|00005fb0| 20 69 20 3d 20 22 50 61 | 72 61 67 72 61 70 68 32 | i = "Pa|ragraph2|
|00005fc0| 2e 30 22 20 74 68 65 6e | 20 67 65 74 20 22 3c 50 |.0" then| get "<P|
|00005fd0| 3e 2c 3c 2f 50 3e 2c 33 | 22 0d 65 6c 73 65 20 69 |>,</P>,3|".else i|
|00005fe0| 66 20 69 20 3d 20 22 50 | 61 72 61 67 72 61 70 68 |f i = "P|aragraph|
|00005ff0| 31 2e 30 22 20 74 68 65 | 6e 20 67 65 74 20 72 65 |1.0" the|n get re|
|00006000| 74 75 72 6e 26 22 3c 50 | 3e 2c 2c 34 22 0d 65 6c |turn&"<P|>,,4".el|
|00006010| 73 65 20 69 66 20 69 20 | 3d 20 22 50 72 65 66 6f |se if i |= "Prefo|
|00006020| 72 6d 61 74 74 65 64 22 | 20 74 68 65 6e 20 67 65 |rmatted"| then ge|
|00006030| 74 20 22 3c 50 52 45 3e | 2c 3c 2f 50 52 45 3e 2c |t "<PRE>|,</PRE>,|
|00006040| 35 22 0d 65 6c 73 65 20 | 69 66 20 69 20 3d 20 22 |5".else |if i = "|
|00006050| 54 69 74 6c 65 22 20 74 | 68 65 6e 20 67 65 74 20 |Title" t|hen get |
|00006060| 22 3c 54 49 54 4c 45 3e | 2c 3c 2f 54 49 54 4c 45 |"<TITLE>|,</TITLE|
|00006070| 3e 2c 37 22 0d 69 66 20 | 69 74 20 ad 20 22 22 20 |>,7".if |it . "" |
|00006080| 74 68 65 6e 20 2d 2d 20 | 66 6f 75 6e 64 20 63 6f |then -- |found co|
|00006090| 64 65 2c 20 73 6f 20 6d | 6f 64 69 66 79 20 74 65 |de, so m|odify te|
|000060a0| 78 74 3a 0d 70 75 74 20 | 69 74 65 6d 20 31 20 6f |xt:.put |item 1 o|
|000060b0| 66 20 69 74 26 74 68 65 | 54 65 78 74 26 69 74 65 |f it&the|Text&ite|
|000060c0| 6d 20 32 20 6f 66 20 69 | 74 20 69 6e 74 6f 20 6e |m 2 of i|t into n|
|000060d0| 65 77 54 65 78 74 0d 69 | 66 20 66 6c 64 49 44 20 |ewText.i|f fldID |
|000060e0| 3e 20 30 20 74 68 65 6e | 20 63 68 65 63 6b 4c 65 |> 0 then| checkLe|
|000060f0| 6e 67 74 68 20 6c 65 6e | 67 74 68 28 6e 65 77 54 |ngth len|gth(newT|
|00006100| 65 78 74 29 2c 66 6c 64 | 49 44 0d 70 75 74 20 6e |ext),fld|ID.put n|
|00006110| 65 77 54 65 78 74 20 69 | 6e 74 6f 20 74 68 65 20 |ewText i|nto the |
|00006120| 73 65 6c 65 63 74 69 6f | 6e 0d 73 65 74 49 6e 66 |selectio|n.setInf|
|00006130| 6f 54 65 78 74 0d 69 66 | 20 28 74 68 65 20 68 69 |oText.if| (the hi|
|00006140| 6c 69 74 65 20 6f 66 20 | 63 64 20 62 74 6e 20 69 |lite of |cd btn i|
|00006150| 64 20 34 32 20 6f 66 20 | 63 64 20 22 70 72 65 66 |d 42 of |cd "pref|
|00006160| 73 22 29 20 74 68 65 6e | 20 2d 2d 20 73 74 61 79 |s") then| -- stay|
|00006170| 20 73 65 6c 65 63 74 65 | 64 0d 61 64 64 20 69 74 | selecte|d.add it|
|00006180| 65 6d 20 33 20 6f 66 20 | 69 74 20 74 6f 20 77 6f |em 3 of |it to wo|
|00006190| 72 64 20 32 20 6f 66 20 | 74 68 65 43 68 75 6e 6b |rd 2 of |theChunk|
|000061a0| 0d 61 64 64 20 69 74 65 | 6d 20 33 20 6f 66 20 69 |.add ite|m 3 of i|
|000061b0| 74 20 74 6f 20 77 6f 72 | 64 20 34 20 6f 66 20 74 |t to wor|d 4 of t|
|000061c0| 68 65 43 68 75 6e 6b 0d | 73 65 6c 65 63 74 20 74 |heChunk.|select t|
|000061d0| 68 65 43 68 75 6e 6b 0d | 65 6e 64 20 69 66 0d 65 |heChunk.|end if.e|
|000061e0| 6e 64 20 69 66 0d 65 6e | 64 20 69 66 0d 65 6e 64 |nd if.en|d if.end|
|000061f0| 20 48 54 4d 4c 0d 0d 6f | 6e 20 63 68 65 63 6b 4c | HTML..o|n checkL|
|00006200| 65 6e 67 74 68 20 4c 2c | 66 6c 64 49 44 0d 69 66 |ength L,|fldID.if|
|00006210| 20 6c 65 6e 67 74 68 28 | 66 6c 64 20 69 64 20 66 | length(|fld id f|
|00006220| 6c 64 49 44 29 20 2b 20 | 4c 20 3e 20 33 30 30 30 |ldID) + |L > 3000|
|00006230| 30 20 74 68 65 6e 20 70 | 72 6f 63 45 72 72 6f 72 |0 then p|rocError|
|00006240| 20 72 65 61 64 54 65 78 | 74 28 22 54 45 58 54 22 | readTex|t("TEXT"|
|00006250| 2c 34 37 36 30 29 26 28 | 69 74 65 6d 20 66 6c 64 |,4760)&(|item fld|
|00006260| 49 44 20 6f 66 20 22 68 | 65 61 64 65 72 2c 62 6f |ID of "h|eader,bo|
|00006270| 64 79 2c 66 6f 6f 74 65 | 72 22 29 26 22 20 66 69 |dy,foote|r")&" fi|
|00006280| 65 6c 64 2e 20 43 61 6e | 6e 6f 74 20 63 6f 6e 74 |eld. Can|not cont|
|00006290| 69 6e 75 65 2e 22 0d 65 | 6e 64 20 63 68 65 63 6b |inue.".e|nd check|
|000062a0| 4c 65 6e 67 74 68 0d 0d | 6f 6e 20 48 54 4d 4c 44 |Length..|on HTMLD|
|000062b0| 65 66 69 6e 69 74 69 6f | 6e 0d 73 65 6e 64 20 74 |efinitio|n.send t|
|000062c0| 68 65 20 70 61 72 61 6d | 73 20 74 6f 20 62 67 20 |he param|s to bg |
|000062d0| 62 74 6e 20 69 64 20 33 | 31 20 6f 66 20 63 64 20 |btn id 3|1 of cd |
|000062e0| 31 20 6f 66 20 62 67 20 | 22 45 64 69 74 6f 72 22 |1 of bg |"Editor"|
|000062f0| 0d 65 6e 64 20 48 54 4d | 4c 44 65 66 69 6e 69 74 |.end HTM|LDefinit|
|00006300| 69 6f 6e 0d 0d 6f 6e 20 | 48 54 4d 4c 4c 69 73 74 |ion..on |HTMLList|
|00006310| 20 74 61 67 0d 73 65 6e | 64 20 74 68 65 20 70 61 | tag.sen|d the pa|
|00006320| 72 61 6d 73 20 74 6f 20 | 62 67 20 62 74 6e 20 69 |rams to |bg btn i|
|00006330| 64 20 33 31 20 6f 66 20 | 63 64 20 31 20 6f 66 20 |d 31 of |cd 1 of |
|00006340| 62 67 20 22 45 64 69 74 | 6f 72 22 0d 65 6e 64 20 |bg "Edit|or".end |
|00006350| 48 54 4d 4c 4c 69 73 74 | 0d 0d 6f 6e 20 63 6f 6e |HTMLList|..on con|
|00006360| 76 65 72 74 50 61 72 61 | 67 72 61 70 68 0d 73 65 |vertPara|graph.se|
|00006370| 6e 64 20 74 68 65 20 70 | 61 72 61 6d 73 20 74 6f |nd the p|arams to|
|00006380| 20 62 67 20 62 74 6e 20 | 69 64 20 33 39 20 6f 66 | bg btn |id 39 of|
|00006390| 20 63 64 20 31 20 6f 66 | 20 62 67 20 22 45 64 69 | cd 1 of| bg "Edi|
|000063a0| 74 6f 72 22 0d 65 6e 64 | 20 63 6f 6e 76 65 72 74 |tor".end| convert|
|000063b0| 50 61 72 61 67 72 61 70 | 68 0d 0d 6f 6e 20 74 61 |Paragrap|h..on ta|
|000063c0| 62 6c 65 43 6f 6e 76 65 | 72 74 0d 73 65 6e 64 20 |bleConve|rt.send |
|000063d0| 74 68 65 20 70 61 72 61 | 6d 73 20 74 6f 20 62 67 |the para|ms to bg|
|000063e0| 20 62 74 6e 20 69 64 20 | 32 31 20 6f 66 20 63 64 | btn id |21 of cd|
|000063f0| 20 31 20 6f 66 20 62 67 | 20 22 45 64 69 74 6f 72 | 1 of bg| "Editor|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.